| Package | Description |
|---|---|
| org.osgl.storage | |
| org.osgl.storage.impl | |
| org.osgl.util |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
ISObject.asByteArray() |
File |
ISObject.asFile() |
InputStream |
ISObject.asInputStream()
Returns an
InputStream connect to the sobject. |
String |
ISObject.asString() |
String |
ISObject.asString(Charset charset) |
void |
ISObject.consumeOnce(Lang.Function<InputStream,?> consumer)
Consume the inputstream of this storage object one time and then close the input stream
|
ISObject |
IStorageService.put(String key,
ISObject stuff)
Update the stuff in the storage.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
SObject.FileSObject.asByteArray() |
byte[] |
SObject.LazyLoadSObject.asByteArray() |
File |
SObject.FileSObject.asFile() |
File |
SObject.LazyLoadSObject.asFile() |
InputStream |
SObject.FileSObject.asInputStream() |
InputStream |
SObject.LazyLoadSObject.asInputStream() |
String |
SObject.FileSObject.asString() |
String |
SObject.LazyLoadSObject.asString() |
String |
SObject.StringSObject.asString(Charset charset) |
String |
SObject.FileSObject.asString(Charset charset) |
String |
SObject.ByteArraySObject.asString(Charset charset) |
String |
SObject.InputStreamSObject.asString(Charset charset) |
String |
SObject.LazyLoadSObject.asString(Charset charset) |
| Modifier and Type | Method and Description |
|---|---|
static UnexpectedIOException |
E.ioException(IOException cause)
Wrap the
IOException into UnexpectedIOException and throw it out. |
static UnexpectedIOException |
E.ioException(String msg,
Object... args)
Throws out an
UnexpectedIOException with error message specified. |
Copyright © 2014–2021 OSGL (Open Source General Library). All rights reserved.