public static class SObject.ByteArraySObject extends SObject
SObject.ByteArraySObject, SObject.FileSObject, SObject.InputStreamSObject, SObject.LazyLoadSObject, SObject.StringSObject| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
buf_ |
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) |
long |
getLength() |
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, valueOfpublic byte[] asByteArray()
public File asFile()
public InputStream asInputStream()
ISObjectReturns an InputStream connect to the sobject. Note it is caller’s responsibility to close the inputStream
public String asString()
public String asString(Charset charset) throws UnexpectedIOException
UnexpectedIOExceptionpublic long getLength()
Copyright © 2014–2019 OSGL (Open Source General Library). All rights reserved.