Class FileBlockHead


  • public class FileBlockHead
    extends FileBlockReference
    Intermediate representation of the header of a fileblock when a set of fileblocks is read as in a stream. The data in the fileblock must be either skipped (where the returned value is a reference to the fileblock) or parsed.
    • Constructor Detail

      • FileBlockHead

        protected FileBlockHead​(java.lang.String type,
                                com.google.protobuf.ByteString indexdata)
    • Method Detail

      • readHead

        static FileBlockHead readHead​(java.io.InputStream input)
                               throws java.io.IOException
        Read the header. After reading the header, either the contents must be skipped or read
        Throws:
        java.io.IOException
      • skipContents

        void skipContents​(java.io.InputStream input)
                   throws java.io.IOException
        Assumes the stream is positioned over at the start of the data, skip over it.
        Throws:
        java.io.IOException
      • readContents

        FileBlock readContents​(java.io.InputStream input)
                        throws java.io.IOException
        Assumes the stream is positioned over at the start of the data, read it and return the complete FileBlock
        Throws:
        java.io.IOException