public static class SObject.StringSObject extends SObject
SObject.ByteArraySObject, SObject.FileSObject, SObject.InputStreamSObject, SObject.LazyLoadSObject, SObject.StringSObjectATTR_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 |
isDumb()
Returns
true if this SObject is dumb |
String |
toString() |
consumeOnce, getAttribute, getAttributes, getContentType, getException, getFilename, getInvalidObject, getKey, getUrl, hasAttribute, 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()
public boolean isDumb()
ISObjectReturns true if this SObject is dumb
Copyright © 2014–2019 OSGL (Open Source General Library). All rights reserved.