public class StorageObject<TYPE extends StorageObject,SVC extends StorageServiceBase<TYPE>> extends SObject
| Modifier and Type | Field and Description |
|---|---|
protected ISObject |
buf |
protected SVC |
svc |
ATTR_CONTENT_LENGTH, ATTR_CONTENT_TYPE, ATTR_FILE_NAME, ATTR_SS_CTX, ATTR_SS_ID, ATTR_URL, VERSION| Modifier and Type | Method and Description |
|---|---|
byte[] |
asByteArray() |
File |
asFile() |
InputStream |
asInputStream()
Returns an
InputStream connect to the sobject. |
String |
asString() |
String |
asString(Charset charset) |
protected ISObject |
buf() |
long |
getLength() |
protected ISObject |
loadBuf() |
consumeOnce, getAttribute, getAttributes, getContentType, getException, getFilename, getInvalidObject, getKey, getUrl, hasAttribute, isDumb, isEmpty, isValid, lazyLoad, lazyLoad, lazyLoad, loadResource, of, of, of, of, of, of, of, of, of, of, of, of, of, of, of, of, of, of, setAttribute, setAttributes, setAttrs, setContentType, setFilename, suffix, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOfprotected transient SVC extends StorageServiceBase<TYPE> svc
protected transient ISObject buf
public long getLength()
protected ISObject buf()
protected ISObject loadBuf()
public File asFile() throws org.osgl.exception.UnexpectedIOException
org.osgl.exception.UnexpectedIOExceptionpublic String asString() throws org.osgl.exception.UnexpectedIOException
org.osgl.exception.UnexpectedIOExceptionpublic String asString(Charset charset) throws org.osgl.exception.UnexpectedIOException
org.osgl.exception.UnexpectedIOExceptionpublic byte[] asByteArray()
throws org.osgl.exception.UnexpectedIOException
org.osgl.exception.UnexpectedIOExceptionpublic InputStream asInputStream() throws org.osgl.exception.UnexpectedIOException
ISObjectReturns an InputStream connect to the sobject. Note it is caller’s responsibility to close the inputStream
org.osgl.exception.UnexpectedIOExceptionCopyright © 2013–2017 OSGL (Open Source General Library). All rights reserved.