Resource, java.io.Closeable, java.lang.AutoCloseablePreprocessResourcepublic abstract class AbstractResource extends java.lang.Object implements Resource
| Modifier | Constructor | Description |
|---|---|---|
protected |
AbstractResource(long modified) |
| Modifier and Type | Method | Description |
|---|---|---|
java.nio.ByteBuffer |
buffer() |
|
void |
close() |
|
protected abstract byte[] |
getBytes() |
|
java.lang.String |
getExtra() |
|
long |
lastModified() |
|
java.io.InputStream |
openInputStream() |
|
void |
setExtra(java.lang.String extra) |
|
long |
size() |
|
void |
write(java.io.OutputStream out) |
public long lastModified()
lastModified in interface Resourcepublic java.io.InputStream openInputStream()
throws java.lang.Exception
openInputStream in interface Resourcejava.lang.Exceptionpublic java.nio.ByteBuffer buffer()
throws java.lang.Exception
public void write(java.io.OutputStream out)
throws java.lang.Exception
protected abstract byte[] getBytes()
throws java.lang.Exception
java.lang.Exceptionpublic long size()
throws java.lang.Exception
public void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOException