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