Package xyz.cofe.text

Class BytesDump.Builder

java.lang.Object
xyz.cofe.text.BytesDump.Builder
Enclosing class:
BytesDump

public static class BytesDump.Builder
extends java.lang.Object
"Строитель"
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  BytesDump.Builder.Decoder
    Описание структуры байт-массива
    static class  BytesDump.Builder.NextDecoder
    Описание структуры байт-массива
  • Constructor Summary

    Constructors 
    Constructor Description
    Builder()  
  • Method Summary

    Modifier and Type Method Description
    BytesDump.Builder absolute​(java.util.function.Consumer<BytesDump.Builder.NextDecoder> decoder)
    Описание структуры байтов используя абсолютное смещение в массиве байтов
    BytesDump build()
    Создание "дампера"
    java.util.function.Function<BytesDump.Decode,​java.util.Optional<BytesDump.Decoded>> preview()  
    BytesDump.Builder relative​(java.util.function.Consumer<BytesDump.Builder.NextDecoder> decoder)
    Описание структуры байтов используя относительное смещение в массиве байтов - относительно начала отображения

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • preview

      public java.util.function.Function<BytesDump.Decode,​java.util.Optional<BytesDump.Decoded>> preview()
    • absolute

      public BytesDump.Builder absolute​(java.util.function.Consumer<BytesDump.Builder.NextDecoder> decoder)
      Описание структуры байтов используя абсолютное смещение в массиве байтов
      Parameters:
      decoder - декодер для описания структуры
      Returns:
      SELF ссылка
    • relative

      public BytesDump.Builder relative​(java.util.function.Consumer<BytesDump.Builder.NextDecoder> decoder)
      Описание структуры байтов используя относительное смещение в массиве байтов - относительно начала отображения
      Parameters:
      decoder - декодер для описания структуры
      Returns:
      SELF ссылка
    • build

      public BytesDump build()
      Создание "дампера"
      Returns:
      "дампер"