Package com.stimulsoft.base.utils
Class StiByteArrayOutputStream
java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
com.stimulsoft.base.utils.StiByteArrayOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
ByteArrayOutputStream wrapper
Copyright Stimulsoft-
Field Summary
Fields inherited from class java.io.ByteArrayOutputStream
buf, count -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]toByteArray(int[] array) Convert int array to byte arrayvoidwrite(int[] b, int off, int len) Write int array with offsetvoidwriteOffset(int offset, byte[] b, int off, int len) Write byte array with offsetvoidwriteOffset(int offset, int[] b, int off, int len) Write int array with offsetMethods inherited from class java.io.ByteArrayOutputStream
close, reset, size, toByteArray, toString, toString, toString, toString, write, write, writeBytes, writeToMethods inherited from class java.io.OutputStream
flush, nullOutputStream, write
-
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:
-