public class EmbeddedResource extends Object implements Resource
| Constructor and Description |
|---|
EmbeddedResource(byte[] data,
long lastModified) |
EmbeddedResource(String pc,
int lastModified) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
buffer() |
void |
close() |
String |
getExtra() |
long |
lastModified() |
InputStream |
openInputStream() |
void |
setExtra(String extra) |
long |
size() |
String |
toString() |
void |
write(OutputStream out) |
public EmbeddedResource(byte[] data,
long lastModified)
public EmbeddedResource(String pc, int lastModified)
public ByteBuffer buffer()
public InputStream openInputStream()
openInputStream in interface Resourcepublic void write(OutputStream out) throws Exception
public long lastModified()
lastModified in interface Resourcepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2019 aQute SARL. All rights reserved.