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 Resource
public void write(OutputStream out) throws Exception
public long lastModified()
lastModified
in interface Resource
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2021 aQute SARL. All rights reserved.