Package xyz.cofe.text

Class BytesDump.Decode

  • Enclosing class:
    BytesDump

    public static class BytesDump.Decode
    extends java.lang.Object
    Декодирование очередной порции байтов
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected byte[] bytes  
      protected int length  
      protected int offset  
      protected int pointer  
    • Constructor Summary

      Constructors 
      Constructor Description
      Decode​(byte[] bytes, int offset, int length, int pointer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getBytes()  
      int getLength()  
      int getOffset()  
      int getPointer()  
      java.util.Optional<byte[]> lookup​(int length)
      Просмотр байтов
      java.util.Optional<xyz.cofe.fn.Tuple3<byte[],​java.lang.Integer,​java.lang.Integer>> lookupBytes​(int len)
      Просмотр байтов
      java.util.Optional<BytesDump.Decoded> respone​(int length, java.lang.String message)
      Формирование расшифровки
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • bytes

        protected byte[] bytes
      • offset

        protected int offset
      • length

        protected int length
      • pointer

        protected int pointer
    • Constructor Detail

      • Decode

        public Decode​(byte[] bytes,
                      int offset,
                      int length,
                      int pointer)
    • Method Detail

      • getBytes

        public byte[] getBytes()
      • getOffset

        public int getOffset()
      • getLength

        public int getLength()
      • getPointer

        public int getPointer()
      • lookupBytes

        public java.util.Optional<xyz.cofe.fn.Tuple3<byte[],​java.lang.Integer,​java.lang.Integer>> lookupBytes​(int len)
        Просмотр байтов
        Parameters:
        len - кол-во просматриваемых байтов
        Returns:
        сегмент массива: массив, указатель, кол-во доступных байтов
      • lookup

        public java.util.Optional<byte[]> lookup​(int length)
        Просмотр байтов
        Parameters:
        length - кол-во просматриваемых байтов
        Returns:
        массив байтов
      • respone

        public java.util.Optional<BytesDump.Decoded> respone​(int length,
                                                             java.lang.String message)
        Формирование расшифровки
        Parameters:
        length - кол-во расшифрованных байт
        message - описание
        Returns:
        расшифровка