Class StreamToJava

java.lang.Object
heasarc.db.votable.StreamToJava

public class StreamToJava
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    StreamToJava​(java.io.InputStream input)  
  • Method Summary

    Modifier and Type Method Description
    void addColumn​(java.lang.String type, java.lang.String array, java.lang.String nullValue)
    Add a description o fone of the columns in the table
    java.lang.Object arrayColumn​(java.lang.String arr, java.lang.String type)  
    java.lang.Object getStreamColumn​(java.lang.String arr, java.lang.String type)  
    java.lang.Boolean readBoolean()  
    java.util.List<java.util.List<java.lang.Object>> readTable()
    Parse the table into a list of lists.
    java.lang.Object scalarColumn​(java.lang.String type)  
    java.lang.String stringColumn​(java.lang.String arr)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StreamToJava

      public StreamToJava​(java.io.InputStream input)
  • Method Details

    • addColumn

      public void addColumn​(java.lang.String type, java.lang.String array, java.lang.String nullValue)
      Add a description o fone of the columns in the table
    • readTable

      public java.util.List<java.util.List<java.lang.Object>> readTable() throws java.io.IOException
      Parse the table into a list of lists.
      Throws:
      java.io.IOException
    • getStreamColumn

      public java.lang.Object getStreamColumn​(java.lang.String arr, java.lang.String type) throws java.io.IOException
      Throws:
      java.io.IOException
    • stringColumn

      public java.lang.String stringColumn​(java.lang.String arr) throws java.io.IOException
      Throws:
      java.io.IOException
    • scalarColumn

      public java.lang.Object scalarColumn​(java.lang.String type) throws java.io.IOException
      Throws:
      java.io.IOException
    • readBoolean

      public java.lang.Boolean readBoolean() throws java.io.IOException
      Throws:
      java.io.IOException
    • arrayColumn

      public java.lang.Object arrayColumn​(java.lang.String arr, java.lang.String type) throws java.io.IOException
      Throws:
      java.io.IOException