public static class SObject.StringSObject extends SObject
SObject.ByteArraySObject, SObject.FileSObject, SObject.InputStreamSObject, SObject.LazyLoadSObject, SObject.StringSObjectaccessDenied, cause, existsATTR_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) |
boolean |
equals(Object obj) |
long |
getLength() |
int |
hashCode() |
boolean |
isBinary()
Probe if the storage object is binary or text
|
boolean |
isDumb()
Returns
true if this SObject is dumb |
String |
toString() |
accessDeniedObject, consumeOnce, getAttribute, getAttributes, getContentType, getException, getFilename, getInvalidObject, getKey, getUrl, hasAttribute, invalidObject, isAccessDenied, isEmpty, isExists, isValid, lazyLoad, lazyLoad, lazyLoad, loadResource, notFoundObject, of, of, of, of, of, of, of, of, of, of, of, of, of, of, of, of, of, of, of, probeBinary, setAttribute, setAttributes, setAttrs, setCause, 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()
public boolean isDumb()
ISObjectReturns true if this SObject is dumb
public boolean isBinary()
ISObjectProbe if the storage object is binary or text
Copyright © 2014–2021 OSGL (Open Source General Library). All rights reserved.