Package 

Class ByteArrayReader

  • All Implemented Interfaces:

    
    public final class ByteArrayReader
    
                        

    Handles ByteArray reading

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Integer offset
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Integer getOffset() An offset that shows how much has been read
      final Unit setOffset(Integer offset) An offset that shows how much has been read
      final ByteArray read(Integer size) Reads a ByteArray of a specified size
      final Byte readByte() Reads data by one byte (the size is set to one)
      final ByteArray readToEnd() Reads data till the end
      final Unit revert(Integer offset) Reverts the offset
      final Unit revertLast() Reverts the offset to the last read size
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait