Class ByteUtil.ByteStream

    • Constructor Detail

      • ByteStream

        public ByteStream()
      • ByteStream

        public ByteStream​(int capacity)
    • Method Detail

      • getLength

        public int getLength()
      • getBytes

        public byte[] getBytes()
      • write

        public void write​(byte[] b,
                          int offset,
                          int length)
        Overrides:
        write in class OutputStream
      • get

        public byte get​(int offset)
      • set

        public void set​(int offset,
                        byte b)
      • setBits

        public void setBits​(int offset,
                            byte b)
      • writeFill

        public void writeFill​(int length,
                              byte b)
      • skip

        public void skip​(int n)
      • toByteArray

        public byte[] toByteArray()
      • reset

        public void reset()
      • trimTrailing

        public void trimTrailing​(byte minTrimCode,
                                 byte maxTrimCode)