Apache CXF API

org.apache.cxf.binding.soap.tcp
Class DataCodingUtils

java.lang.Object
  extended by org.apache.cxf.binding.soap.tcp.DataCodingUtils

public final class DataCodingUtils
extends Object

DataCodingUtils is a utility class for reading and writing integers in SOAP over TCP protocol.


Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readInts4

public static void readInts4(InputStream inputStream,
                             int[] array,
                             int count)
                      throws IOException
Method for reading INTEGER4 values from InputStream

Parameters:
inputStream - a source stream
array - a buffer for read data
count - a number of integers to be read
Throws:
IOException

readInt8

public static int readInt8(InputStream inputStream)
                    throws IOException
Method for reading single INTEGER8 value

Parameters:
inputStream - a source stream
Returns:
read integer
Throws:
IOException

writeInt8

public static void writeInt8(OutputStream outputStream,
                             int intValue)
                      throws IOException
Method for writing single INTEGER4 value into OutputStream

Parameters:
outputStream - a target stream
intValue - value that will be written
Throws:
IOException

writeInts4

public static void writeInts4(OutputStream outputStream,
                              int... values)
                       throws IOException
Method for writing variable number of integer values as INTEGER4 values

Parameters:
outputStream - a target stream
values - a variable length list of integer values that will be written
Throws:
IOException

writeInts4

public static void writeInts4(OutputStream outputStream,
                              int[] array,
                              int offset,
                              int count)
                       throws IOException
Method for writing integers as INTEGER4 values

Parameters:
outputStream - a target stream
array - values that will be written
offset - an offset in array from method starts writing
count - a number of integers to be written
Throws:
IOException

Apache CXF API

Apache CXF