Class FileBlock


  • public class FileBlock
    extends FileBlockBase
    A full fileblock object contains both the metadata and data of a fileblock
    • Field Detail

      • data

        com.google.protobuf.ByteString data
        Contains the contents of a block for use or further processing
      • warncount

        static int warncount
        Don't be noisy unless the warning occurs somewhat often
    • Constructor Detail

      • FileBlock

        private FileBlock​(java.lang.String type,
                          com.google.protobuf.ByteString blob,
                          com.google.protobuf.ByteString indexdata)
    • Method Detail

      • newInstance

        public static FileBlock newInstance​(java.lang.String type,
                                            com.google.protobuf.ByteString blob,
                                            com.google.protobuf.ByteString indexdata)
      • writeTo

        public FileBlockPosition writeTo​(java.io.OutputStream outwrite,
                                         CompressFlags flags)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • process

        static void process​(java.io.InputStream input,
                            BlockReaderAdapter callback)
                     throws java.io.IOException
        Reads or skips a fileblock.
        Throws:
        java.io.IOException
      • getData

        public com.google.protobuf.ByteString getData()