public class EmbeddedResource extends Object implements Resource
| Constructor and Description |
|---|
EmbeddedResource(byte[] data,
int off,
int len,
long lastModified) |
EmbeddedResource(byte[] data,
long lastModified) |
EmbeddedResource(ByteBuffer buffer,
long lastModified) |
EmbeddedResource(String pc,
long 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(byte[] data,
int off,
int len,
long lastModified)
public EmbeddedResource(ByteBuffer buffer, long lastModified)
public EmbeddedResource(String pc, long 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 © 2021. All rights reserved.