RResult.ByteBufferInputStream, RResult.InputStreamURLConnection, RResult.ResultType| Constructor and Description |
|---|
URLResult(RRequest request,
Path path) |
URLResult(RRequest request,
URL resourceUrl) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
asByteBuffer()
Returns the resource as a byte buffer, 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 InputStream |
createInputStream()
Optional: creates an input stream to access the resource.
|
URL |
getResourceURL()
Returns the resource as URL, or
null |
RResult.ResultType |
getResultType()
Indicates the native format of this result.
|
asBufferedInputStream, asException, asInputStream, asURLConnection, bufferFrom, bufferFrom, bytesFrom, createByteBuffer, createReader, createURLConnection, expandSystemId, fromStreamOrBuffer, fromStreamOrBufferOrUrl, fromStreamOrUrl, fromStringOrReader, getBaseUri, getByteBuffer, getCharset, getDefaultUrlConnectionHeader, getEncoding, getInputStream, getPublicId, getReader, getRequest, getResolvedSystemId, getResourceURLOrSystemId, getResult, getString, getSystemId, getUri, getUriOrId, getURLConnection, getWarningsLog, hasResult, readerFrom, resolveSystemId, resolvingException, resourceUnaccessible, setDefaultEncoding, setEncoding, streamFrom, streamFrom, streamFrom, streamFromURLConnection, stringFrom, stringFrom, toString, trySetEncodingpublic URLResult(RRequest request, Path path) throws MalformedURLException
MalformedURLExceptionpublic RResult.ResultType getResultType()
RResultgetResultType in class RResultpublic URL getResourceURL() throws Exception
RResultnullgetResourceURL in class RResultExceptionprotected InputStream createInputStream() throws Exception
RResultcreateInputStream in class RResultExceptionpublic ByteBuffer asByteBuffer()
RResultSee the docs of RResult for notes on data conversion.
asByteBuffer in class RResultpublic Reader asReader()
RResultSee the docs of RResult for notes on data conversion.
Copyright © 2015. All rights reserved.