Package org.intermine.client.results
Class ResultSet
- java.lang.Object
-
- org.intermine.client.results.ResultSet
-
- Direct Known Subclasses:
JSONResult
,RowResultSet
,TabTableResult
,XMLTableResult
public abstract class ResultSet extends java.lang.Object
Common behaviour and interface for result sets.
-
-
Constructor Summary
Constructors Constructor Description ResultSet(java.io.BufferedReader reader)
Constructor with a reader.ResultSet(java.lang.String stringResults)
Constructor with a String.ResultSet(HttpConnection connection)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getNextLine()
Get the next line of results.protected java.io.BufferedReader
getReader()
Get a reader over the data, for reading line-by-line.
-
-
-
Constructor Detail
-
ResultSet
public ResultSet(HttpConnection connection)
Constructor.- Parameters:
connection
- source of data
-
ResultSet
public ResultSet(java.lang.String stringResults)
Constructor with a String.- Parameters:
stringResults
- a String containing the http response
-
ResultSet
public ResultSet(java.io.BufferedReader reader)
Constructor with a reader. Use this constructor when you want to make the request yourself.- Parameters:
reader
- A presupplied reader, presumably obtained by opening a URL or a file.
-
-