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