| Modifier and Type | Field | Description |
|---|---|---|
static int |
BUFSIZE |
The default buffer size, which is 8192.
|
| Modifier and Type | Method | Description |
|---|---|---|
default ConnectedCodec |
connect(Codec c) |
Connects this store to the given codec.
|
default byte[] |
content() |
Returns the content of this store.
|
default void |
content(byte[] content) |
Sets the content of this store.
|
void |
delete() |
Deletes the content of this store.
|
default boolean |
exists() |
Returns
true if and only if some content exists in this store. |
default Store |
map(Transformation t) |
Returns a store which applies the given transformation to the I/O streams loaned by this store.
|
java.util.OptionalLong |
size() |
Returns the size of the content of this store, if present.
|
static final int BUFSIZE
void delete()
throws java.io.IOException
java.io.IOExceptionjava.util.OptionalLong size()
throws java.io.IOException
java.io.IOExceptiondefault boolean exists()
throws java.io.IOException
true if and only if some content exists in this store.java.io.IOExceptiondefault ConnectedCodec connect(Codec c)
default Store map(Transformation t)
default byte[] content()
throws java.io.IOException
java.io.IOException - if co content is present or cannot be read for some reason.java.lang.IllegalStateException - if the content length exceeds Integer.MAX_VALUE.default void content(byte[] content)
throws java.io.IOException
java.io.IOException