com.stimulsoft.base.utils
Class StiByteArrayOutputStream

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

public class StiByteArrayOutputStream
extends java.io.ByteArrayOutputStream

ByteArrayOutputStream wrapper Copyright Stimulsoft


Field Summary
 
Fields inherited from class java.io.ByteArrayOutputStream
buf, count
 
Constructor Summary
StiByteArrayOutputStream()
           
 
Method Summary
static byte[] toByteArray(int[] array)
          Convert int array to byte array
 void write(int[] b, int off, int len)
          Write int array with offset
 void writeOffset(int offset, byte[] b, int off, int len)
          Write byte array with offset
 void writeOffset(int offset, int[] b, int off, int len)
          Write int array with offset
 
Methods inherited from class java.io.ByteArrayOutputStream
close, reset, size, toByteArray, toString, toString, toString, write, write, writeTo
 
Methods inherited from class java.io.OutputStream
flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StiByteArrayOutputStream

public StiByteArrayOutputStream()
Method Detail

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:


Copyright © 2018 Stimulsoft. All Rights Reserved.