com.stimulsoft.base.utils
Class StiByteArrayOutputStream
java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
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
| Fields inherited from class java.io.ByteArrayOutputStream |
buf, count |
|
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 |
StiByteArrayOutputStream
public StiByteArrayOutputStream()
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.