Package w.util.io

Class AbstractByteOutput

java.lang.Object
w.util.io.AbstractByteOutput
All Implemented Interfaces:
ByteOutput
Direct Known Subclasses:
CappedByteOutput, UncappedByteOutput

public abstract class AbstractByteOutput extends Object implements ByteOutput
Author:
whilein
  • Constructor Details

    • AbstractByteOutput

      protected AbstractByteOutput(byte[] array)
  • Method Details

    • ensure

      protected abstract void ensure(int count)
    • write

      @NotNull public @NotNull ByteOutput write(int i)
      Specified by:
      write in interface ByteOutput
    • write

      @NotNull public @NotNull ByteOutput write(@NotNull @NotNull String text)
      Specified by:
      write in interface ByteOutput
    • write

      @NotNull public @NotNull ByteOutput write(byte @NotNull [] bytes)
      Specified by:
      write in interface ByteOutput
    • write

      @NotNull public @NotNull ByteOutput write(byte @NotNull [] bytes, int off, int len)
      Specified by:
      write in interface ByteOutput
    • getCapacity

      public int getCapacity()
      Specified by:
      getCapacity in interface ByteOutput