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()
Get the MIME type of this result.
|
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, toXML
public LargeResult(Result result)
LargeResult
instance.result
- a Result
value.public LargeResult(String id, String mimeType, String profileID, String resourceID, List headers, long size)
LargeResult
instance.id
- Result ID.mimeType
- MIME type.profileID
- Profile ID.resourceID
- Resource ID.headers
- Headers.size
- Size of the product.public final long getSize()
public final String getMimeType()
Result
getMimeType
in class Result
public final Object getValue()
getInputStream()
instead to perform stream processing on result data.public InputStream getInputStream() throws IOException
getInputStream
in class Result
InputStream
value.IOException
- if an error occurs.Copyright © 1999–2017 Apache OODT. All rights reserved.