Package com.sun.xml.ws.transport.tcp.io
Class DataInOutUtils
java.lang.Object
com.sun.xml.ws.transport.tcp.io.DataInOutUtils
- Author:
- Alexey Stashok
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
readFully
(InputStream inputStream, byte[] buffer) static void
readFully
(InputStream inputStream, byte[] buffer, int offset, int length) static int
readInt4
(InputStream is) static int
readInt4
(ByteBuffer buffer) static int
readInt8
(InputStream is) static int
readInt8
(ByteBuffer buffer) static void
readInts4
(InputStream is, int[] array, int count) static int
readInts4
(InputStream is, int[] array, int count, int lowValue) static void
readInts4
(ByteBuffer buffer, int[] array, int count) static int
readInts4
(ByteBuffer buffer, int[] array, int count, int lowValue) static void
writeInt4
(OutputStream os, int value) static int
writeInt4
(OutputStream out, int value, int highValue, boolean flush) static int
writeInt4
(ByteBuffer bb, int value, int highValue, boolean flush) static void
writeInt8
(OutputStream os, int value) static void
writeInt8
(ByteBuffer bb, int value) static void
writeInts4
(OutputStream out, int... values) static void
writeInts4
(OutputStream out, int[] array, int offset, int count) static void
writeInts4
(ByteBuffer bb, int... values) static void
writeInts4
(ByteBuffer bb, int[] array, int offset, int count)
-
Constructor Details
-
DataInOutUtils
public DataInOutUtils()
-
-
Method Details
-
readInt4
- Throws:
IOException
-
readInts4
- Throws:
IOException
-
readInts4
public static int readInts4(InputStream is, int[] array, int count, int lowValue) throws IOException - Throws:
IOException
-
readInts4
- Throws:
IOException
-
readInts4
public static int readInts4(ByteBuffer buffer, int[] array, int count, int lowValue) throws IOException - Throws:
IOException
-
writeInt4
- Throws:
IOException
-
readInt8
- Throws:
IOException
-
writeInt8
- Throws:
IOException
-
writeInt8
-
readInt4
- Throws:
IOException
-
writeInts4
- Throws:
IOException
-
writeInts4
- Throws:
IOException
-
writeInts4
- 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
-
readInt8
- Throws:
IOException
-
readFully
- Throws:
IOException
-
readFully
public static void readFully(InputStream inputStream, byte[] buffer, int offset, int length) throws IOException - Throws:
IOException
-