RResult.ByteBufferInputStream, RResult.InputStreamURLConnection, RResult.ResultType| Constructor and Description |
|---|
BytesResult(RRequest request,
String systemId,
byte[] data) |
BytesResult(RRequest request,
String systemId,
byte[] data,
boolean copy) |
BytesResult(RRequest request,
String systemId,
ByteBuffer data) |
BytesResult(RRequest request,
String systemId,
ByteBuffer data,
boolean copy) |
BytesResult(RRequest request,
String systemId,
InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
asInputStream()
Returns the resource as an input stream, converting it if necessary.
|
Reader |
asReader()
Returns the resource as a reader, converting it if necessary.
|
String |
asString()
Returns the resource as a string, converting it if necessary.
|
protected ByteBuffer |
createByteBuffer()
Optional: creates a byte buffer to access the resource.
|
RResult.ResultType |
getResultType()
Indicates the native format of this result.
|
asBufferedInputStream, asByteBuffer, asException, asURLConnection, bufferFrom, bufferFrom, bytesFrom, createInputStream, createReader, createURLConnection, expandSystemId, fromStreamOrBuffer, fromStreamOrBufferOrUrl, fromStreamOrUrl, fromStringOrReader, getBaseUri, getByteBuffer, getCharset, getDefaultUrlConnectionHeader, getEncoding, getInputStream, getPublicId, getReader, getRequest, getResolvedSystemId, getResourceURL, getResourceURLOrSystemId, getResult, getString, getSystemId, getUri, getUriOrId, getURLConnection, getWarningsLog, hasResult, readerFrom, resolveSystemId, resolvingException, resourceUnaccessible, setDefaultEncoding, setEncoding, streamFrom, streamFrom, streamFrom, streamFromURLConnection, stringFrom, stringFrom, toString, trySetEncodingpublic BytesResult(RRequest request, String systemId, ByteBuffer data)
public BytesResult(RRequest request, String systemId, ByteBuffer data, boolean copy)
public BytesResult(RRequest request, String systemId, InputStream is) throws IOException
IOExceptionpublic RResult.ResultType getResultType()
RResultgetResultType in class RResultprotected ByteBuffer createByteBuffer() throws Exception
RResultcreateByteBuffer in class RResultExceptionpublic InputStream asInputStream()
RResultSee the docs of RResult for notes on data conversion.
asInputStream in class RResultpublic Reader asReader()
RResultSee the docs of RResult for notes on data conversion.
Copyright © 2015. All rights reserved.