public class LargeResult extends Result
| Constructor and Description |
|---|
LargeResult(Result result)
Creates a new
LargeResult instance. |
LargeResult(String id,
String mimeType,
String profileID,
String resourceID,
List headers,
long size)
Creates a new
LargeResult instance. |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream()
Get an input stream that streams the result from the product server.
|
String |
getMimeType() |
long |
getSize()
Get the size of the product.
|
Object |
getValue()
Deprecated.
This method always treats its value as if it were a String. Worse,
for very large results, it cannot contain the entire result in memory. Use
getInputStream() instead to perform stream processing on result data. |
clone, equals, getHeaders, getID, getProfileID, getResourceID, getURIID, getValidity, hashCode, isClassified, setClassified, setID, setMimeType, setProfileID, setResourceID, setRetriever, setValidity, setValue, toString, toXMLpublic LargeResult(Result result)
LargeResult instance.result - a Result value.public final long getSize()
public final String getMimeType()
getMimeType in class Resultpublic final Object getValue()
getInputStream() instead to perform stream processing on result data.public InputStream getInputStream() throws IOException
getInputStream in class ResultInputStream value.IOException - if an error occurs.Copyright © 1999-2014 Apache OODT. All Rights Reserved.