Class ByteBufferOutputStream

java.lang.Object
java.io.OutputStream
org.burningwave.core.io.ByteBufferOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class ByteBufferOutputStream extends OutputStream
  • Constructor Details

    • ByteBufferOutputStream

      public ByteBufferOutputStream(ByteBuffer buffer)
    • ByteBufferOutputStream

      public ByteBufferOutputStream(int initialCapacity)
  • Method Details

    • write

      public void write(int b)
      Specified by:
      write in class OutputStream
    • write

      public void write(byte[] bytes, int off, int len)
      Overrides:
      write in class OutputStream
    • write

      public void write(ByteBuffer sourceBuffer)
    • position

      public int position()
    • remaining

      public int remaining()
    • limit

      public int limit()
    • position

      public void position(int position)
    • initialCapacity

      public int initialCapacity()
    • toByteBuffer

      public ByteBuffer toByteBuffer()
    • toByteArray

      public byte[] toByteArray()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class OutputStream