|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oodt.xmlquery.Result
org.apache.oodt.xmlquery.LargeResult
public class LargeResult
A large result is a result for large products. What is large? Some might say large is something that exceeds most other things of like kind in bulk, capacity, quantity, superficial dimensions, or number of constituent units. Large might be big, great, capacious, extensive. Large might be opposed to small; as, a large horse; a large house or room; a large lake or pool; a large jug or spoon; a large vineyard; a large army; a large city. Some might say that particularly if they're named Webster.
| Field Summary |
|---|
| Fields inherited from class org.apache.oodt.xmlquery.Result |
|---|
codecs, id, INFINITE, mimeType, retriever, value |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.oodt.xmlquery.Result |
|---|
clone, equals, getHeaders, getID, getProfileID, getResourceID, getURIID, getValidity, hashCode, isClassified, setClassified, setID, setMimeType, setProfileID, setResourceID, setRetriever, setValidity, setValue, toString, toXML |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public final long getSize()
getSize in class Resultpublic final String getMimeType()
getMimeType in class Resultpublic final Object getValue()
getInputStream() instead to perform stream processing on result data.
getValue in class Result
public InputStream getInputStream()
throws IOException
getInputStream in class ResultInputStream value.
IOException - if an error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||