Class VPFInputStream

    • Field Detail

      • header

        protected VPFHeader header
        Describe variable header here.
      • streamFile

        protected String streamFile
        Describe variable streamFile here.
    • Constructor Detail

      • VPFInputStream

        public VPFInputStream​(String file)
                       throws IOException
        Creates a new VPFInputStream instance.
        Parameters:
        file - a String value
        Throws:
        IOException - if an error occurs
      • VPFInputStream

        public VPFInputStream​(String file,
                              char byteOrder)
                       throws IOException
        Creates a new VPFInputStream instance.
        Parameters:
        file - a String value
        byteOrder - a char value
        Throws:
        IOException - if an error occurs
    • Method Detail

      • readHeader

        public abstract VPFHeader readHeader()
                                      throws IOException
        Describe readHeader method here.
        Returns:
        a VPFHeader value
        Throws:
        IOException - if an error occurs
      • readRow

        public abstract VPFRow readRow()
                                throws IOException
        Describe readRow method here.
        Returns:
        a VPFRow value
        Throws:
        IOException - if an error occurs
      • tableSize

        public abstract int tableSize()
                               throws IOException
        Describe tableSize method here.
        Returns:
        an int value
        Throws:
        IOException - if an error occurs
      • getVariableIndexFileName

        public String getVariableIndexFileName()
        Describe getVariableIndexFileName method here.
        Returns:
        a String value
      • getHeader

        public VPFHeader getHeader()
        Describe getHeader method here.
        Returns:
        a VPFHeader value
      • getByteOrder

        public char getByteOrder()
        Get the ByteOrder value.
        Returns:
        the ByteOrder value.
      • setByteOrder

        public void setByteOrder​(char newByteOrder)
        Set the ByteOrder value.
        Parameters:
        newByteOrder - The new ByteOrder value.
      • unread

        protected void unread​(long bytes)
                       throws IOException
        Describe unread method here.
        Parameters:
        bytes - a long value
        Throws:
        IOException - if an error occurs
      • seek

        protected void seek​(long pos)
                     throws IOException
        Describe seek method here.
        Parameters:
        pos - a long value
        Throws:
        IOException - if an error occurs
      • setPosition

        public void setPosition​(long pos)
                         throws IOException
        DOCUMENT ME!
        Parameters:
        pos - DOCUMENT ME!
        Throws:
        IOException - DOCUMENT ME!
      • readRow

        public VPFRow readRow​(int index)
                       throws IOException
        Method readRow is used to perform
        Parameters:
        index - an int value
        Returns:
        a VPFRow value
        Throws:
        IOException - if an error occurs
      • readAllRows

        public List readAllRows()
                         throws IOException
        Describe readAllRows method here.
        Returns:
        a List value
        Throws:
        IOException - if an error occurs
      • readRows

        public int readRows​(VPFRow[] rows)
                     throws IOException
        Method readRows is used to perform
        Parameters:
        rows - a VPFRow[] value
        Returns:
        an int value
        Throws:
        IOException - if an error occurs
      • readRows

        public int readRows​(VPFRow[] rows,
                            int fromIndex)
                     throws IOException
        Describe readRows method here.
        Parameters:
        rows - a VPFRow[] value
        fromIndex - an int value
        Returns:
        an int value
        Throws:
        IOException - if an error occurs
      • readChar

        protected char readChar()
                         throws IOException
        Describe readChar method here.
        Returns:
        a char value
        Throws:
        IOException - if an error occurs
      • readString

        protected String readString​(String terminators)
                             throws IOException
        Describe readString method here.
        Parameters:
        terminators - a String value
        Returns:
        a String value
        Throws:
        IOException - if an error occurs
      • readVariableSizeData

        protected Object readVariableSizeData​(char dataType)
                                       throws IOException
        Describe readVariableSizeData method here.
        Parameters:
        dataType - a char value
        Returns:
        an Object value
        Throws:
        IOException - if an error occurs
      • readFixedSizeData

        protected Object readFixedSizeData​(char dataType,
                                           int instancesCount)
                                    throws IOException
        Describe readFixedSizeData method here.
        Parameters:
        dataType - a char value
        instancesCount - an int value
        Returns:
        an Object value
        Throws:
        IOException - if an error occurs
      • readNumber

        protected byte[] readNumber​(int cnt)
                             throws IOException
        Describe readNumber method here.
        Parameters:
        cnt - an int value
        Returns:
        a byte[] value
        Throws:
        IOException - if an error occurs
      • readShort

        protected short readShort()
                           throws IOException
        Describe readShort method here.
        Returns:
        a short value
        Throws:
        IOException - if an error occurs
      • readInteger

        protected int readInteger()
                           throws IOException
        Describe readInteger method here.
        Returns:
        an int value
        Throws:
        IOException - if an error occurs
      • readFloat

        protected float readFloat()
                           throws IOException
        Describe readFloat method here.
        Returns:
        a float value
        Throws:
        IOException - if an error occurs
      • readDouble

        protected double readDouble()
                             throws IOException
        Describe readDouble method here.
        Returns:
        a double value
        Throws:
        IOException - if an error occurs
      • availableRows

        public int availableRows()
        Describe availableRows method here.
        Returns:
        an int value
      • close

        public void close()
                   throws IOException
        Describe close method here.
        Throws:
        IOException - if an error occurs
      • condeb

        protected void condeb​(String msg)
        Describe condeb method here.
        Parameters:
        msg - a String value