public class Resource extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
boolean |
equals(Object obj) |
boolean |
exists() |
String |
getExtension() |
String |
getFullName() |
String |
getName() |
String |
getPath() |
Storage |
getStorage() |
URI |
getUri() |
int |
hashCode() |
<E> E |
readFromInputStream(InputStreamProcessor<E> processor) |
ByteBuffer |
readToByteBuffer() |
byte[] |
readToBytes() |
String |
readToString() |
long |
size() |
String |
toString() |
void |
write(byte[] content,
boolean append) |
void |
write(CharSequence content,
boolean append) |
void |
write(InputStream content,
boolean append) |
void |
write(Reader content,
boolean append) |
void |
writeDeferred(byte[] content) |
void |
writeDeferred(CharSequence content) |
void |
writeDeferred(Supplier<byte[]> contentProvider) |
public Storage getStorage()
public String getPath()
public URI getUri()
public String getFullName()
public String getName()
public String getExtension()
public boolean exists()
public long size()
public void delete()
public byte[] readToBytes()
public ByteBuffer readToByteBuffer()
public String readToString()
public <E> E readFromInputStream(InputStreamProcessor<E> processor)
public void write(CharSequence content, boolean append)
public void write(Reader content, boolean append)
public void write(byte[] content,
boolean append)
public void write(InputStream content, boolean append)
public void writeDeferred(CharSequence content)
public void writeDeferred(byte[] content)
public void writeDeferred(Supplier<byte[]> contentProvider)
Copyright © 2019. All rights reserved.