public final class DataCodingUtils extends Object
Modifier and Type | Method and Description |
---|---|
static int |
readInt8(InputStream inputStream)
Method for reading single INTEGER8 value
|
static void |
readInts4(InputStream inputStream,
int[] array,
int count)
Method for reading INTEGER4 values from InputStream
|
static void |
writeInt8(OutputStream outputStream,
int intValue)
Method for writing single INTEGER4 value into OutputStream
|
static void |
writeInts4(OutputStream outputStream,
int... values)
Method for writing variable number of integer values as INTEGER4 values
|
static void |
writeInts4(OutputStream outputStream,
int[] array,
int offset,
int count)
Method for writing integers as INTEGER4 values
|
public static void readInts4(InputStream inputStream, int[] array, int count) throws IOException
inputStream
- a source streamarray
- a buffer for read datacount
- a number of integers to be readIOException
public static int readInt8(InputStream inputStream) throws IOException
inputStream
- a source streamIOException
public static void writeInt8(OutputStream outputStream, int intValue) throws IOException
outputStream
- a target streamintValue
- value that will be writtenIOException
public static void writeInts4(OutputStream outputStream, int... values) throws IOException
outputStream
- a target streamvalues
- a variable length list of integer values that will be writtenIOException
public static void writeInts4(OutputStream outputStream, int[] array, int offset, int count) throws IOException
outputStream
- a target streamarray
- values that will be writtenoffset
- an offset in array from method starts writingcount
- a number of integers to be writtenIOException
Apache CXF