- java.lang.Object
-
- com.sun.xml.ws.transport.tcp.io.DataInOutUtils
-
public final class DataInOutUtils extends Object
- Author:
- Alexey Stashok
-
-
Constructor Summary
Constructors Constructor Description DataInOutUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidreadFully(InputStream inputStream, byte[] buffer)static voidreadFully(InputStream inputStream, byte[] buffer, int offset, int length)static intreadInt4(InputStream is)static intreadInt4(ByteBuffer buffer)static intreadInt8(InputStream is)static intreadInt8(ByteBuffer buffer)static voidreadInts4(InputStream is, int[] array, int count)static intreadInts4(InputStream is, int[] array, int count, int lowValue)static voidreadInts4(ByteBuffer buffer, int[] array, int count)static intreadInts4(ByteBuffer buffer, int[] array, int count, int lowValue)static voidwriteInt4(OutputStream os, int value)static intwriteInt4(OutputStream out, int value, int highValue, boolean flush)static intwriteInt4(ByteBuffer bb, int value, int highValue, boolean flush)static voidwriteInt8(OutputStream os, int value)static voidwriteInt8(ByteBuffer bb, int value)static voidwriteInts4(OutputStream out, int... values)static voidwriteInts4(OutputStream out, int[] array, int offset, int count)static voidwriteInts4(ByteBuffer bb, int... values)static voidwriteInts4(ByteBuffer bb, int[] array, int offset, int count)
-
-
-
Method Detail
-
readInt4
public static int readInt4(InputStream is) throws IOException
- Throws:
IOException
-
readInts4
public static void readInts4(InputStream is, int[] array, int count) throws IOException
- Throws:
IOException
-
readInts4
public static int readInts4(InputStream is, int[] array, int count, int lowValue) throws IOException
- Throws:
IOException
-
readInts4
public static void readInts4(ByteBuffer buffer, int[] array, int count) throws IOException
- Throws:
IOException
-
readInts4
public static int readInts4(ByteBuffer buffer, int[] array, int count, int lowValue) throws IOException
- Throws:
IOException
-
writeInt4
public static void writeInt4(OutputStream os, int value) throws IOException
- Throws:
IOException
-
readInt8
public static int readInt8(InputStream is) throws IOException
- Throws:
IOException
-
writeInt8
public static void writeInt8(OutputStream os, int value) throws IOException
- Throws:
IOException
-
writeInt8
public static void writeInt8(ByteBuffer bb, int value) throws IOException
- Throws:
IOException
-
readInt4
public static int readInt4(ByteBuffer buffer) throws IOException
- Throws:
IOException
-
writeInts4
public static void writeInts4(ByteBuffer bb, int... values) throws IOException
- Throws:
IOException
-
writeInts4
public static void writeInts4(ByteBuffer bb, int[] array, int offset, int count) throws IOException
- Throws:
IOException
-
writeInts4
public static void writeInts4(OutputStream out, int... values) throws IOException
- Throws:
IOException
-
writeInts4
public static void writeInts4(OutputStream out, int[] array, int offset, int count) throws IOException
- Throws:
IOException
-
writeInt4
public static int writeInt4(OutputStream out, int value, int highValue, boolean flush) throws IOException
- Throws:
IOException
-
writeInt4
public static int writeInt4(ByteBuffer bb, int value, int highValue, boolean flush) throws IOException
- Throws:
IOException
-
readInt8
public static int readInt8(ByteBuffer buffer) throws IOException
- Throws:
IOException
-
readFully
public static void readFully(InputStream inputStream, byte[] buffer) throws IOException
- Throws:
IOException
-
readFully
public static void readFully(InputStream inputStream, byte[] buffer, int offset, int length) throws IOException
- Throws:
IOException
-
-