public interface ModuleEntry
| Modifier and Type | Interface and Description |
|---|---|
static class |
ModuleEntry.Type
Type of module data.
|
| Modifier and Type | Method and Description |
|---|---|
static ModuleEntry |
create(String path,
byte[] content)
Create a LinkModuleEntry for a file that will be located inside a jimage
file.
|
static ModuleEntry |
create(String path,
InputStream content,
long size)
Create a LinkModuleEntry located inside a jimage file.
|
static ModuleEntry |
create(String module,
String path,
ModuleEntry.Type type,
InputStream content,
long size)
Create a LinkModuleEntry for a file that will be located outside a jimage
file.
|
byte[] |
getBytes()
The LinkModuleEntry content as an array of byte.
|
long |
getLength()
The LinkModuleEntry content length.
|
String |
getModule()
The LinkModuleEntry module name.
|
String |
getPath()
The LinkModuleEntry path.
|
ModuleEntry.Type |
getType()
The LinkModuleEntry's type.
|
InputStream |
stream()
The LinkModuleEntry stream.
|
String getModule()
String getPath()
ModuleEntry.Type getType()
byte[] getBytes()
long getLength()
InputStream stream()
static ModuleEntry create(String path, InputStream content, long size)
path - The complete resource path (contains the module radical).content - The resource content.size - The content size.static ModuleEntry create(String path, byte[] content)
path - The resource path.content - The resource content.static ModuleEntry create(String module, String path, ModuleEntry.Type type, InputStream content, long size)
module - The module in which this files is located.path - The file path locator (doesn't contain the module name).type - The LinkModuleEntry type.content - The file content.size - The content size.
Copyright © 2015, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-06-24-123359.doko.src