Class ResultSet

    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
    • Method Detail

      • getReader

        protected java.io.BufferedReader getReader()
        Get a reader over the data, for reading line-by-line.
        Returns:
        A reader of the data.
      • getNextLine

        public java.lang.String getNextLine()
        Get the next line of results.
        Returns:
        A string containing the next line of data.