Class SpjFile.Header

    • Constructor Detail

    • Method Detail

      • getRecordLength

        public int getRecordLength()
        Get Record Length.

        This method, in addition to returning the needed record size, will also pull a SdfBuffer back into the record if one exists.

        Returns:
        record length.
      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String name)
      • getSdfBuffer

        public SdfBuffer getSdfBuffer()
        Get as a SDF buffer. This buffer then becomes associated, and a later write will use the buffer's contents.
        Returns:
        the byte array as SDF buffer.
      • updateStart

        void updateStart​(int newRecordStart)
        Data record associated with this header is being being repositioned.
        Parameters:
        newRecordStart - identify the new start record
      • setContent

        public void setContent​(byte[] array,
                               int start,
                               int length)
        Provide new content. The data start and data length values are computed from the arguments, and stored relative to the length.
        Parameters:
        array - New byte array; copied into header
        start - data start location within array
        length - data length in bytes (not record length)
      • store

        int store​(byte[] buffer,
                  int index)
      • store

        void store​(java.io.OutputStream s)
            throws java.io.IOException
        Throws:
        java.io.IOException
      • load

        void load​(java.io.InputStream s)
           throws java.io.IOException
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • isWAV

        public boolean isWAV()
      • isSDF

        public boolean isSDF()
      • isMap

        public boolean isMap()
      • isTxt

        public boolean isTxt()