Class StiByteArrayOutputStream

java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
com.stimulsoft.base.utils.StiByteArrayOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class StiByteArrayOutputStream extends ByteArrayOutputStream
ByteArrayOutputStream wrapper Copyright Stimulsoft
  • Constructor Details

    • StiByteArrayOutputStream

      public StiByteArrayOutputStream()
  • Method Details

    • writeOffset

      public void writeOffset(int offset, byte[] b, int off, int len)
      Write byte array with offset
      Parameters:
      offset -
      b -
      off -
      len -
    • writeOffset

      public void writeOffset(int offset, int[] b, int off, int len)
      Write int array with offset
      Parameters:
      offset -
      b -
      off -
      len -
    • write

      public void write(int[] b, int off, int len)
      Write int array with offset
      Parameters:
      b -
      off -
      len -
    • toByteArray

      public static byte[] toByteArray(int[] array)
      Convert int array to byte array
      Parameters:
      array -
      Returns: