public final class DataInOutUtils extends Object
| Constructor and Description |
|---|
DataInOutUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
readFully(InputStream inputStream,
byte[] buffer) |
static void |
readFully(InputStream inputStream,
byte[] buffer,
int offset,
int length) |
static int |
readInt4(ByteBuffer buffer) |
static int |
readInt4(InputStream is) |
static int |
readInt8(ByteBuffer buffer) |
static int |
readInt8(InputStream is) |
static void |
readInts4(ByteBuffer buffer,
int[] array,
int count) |
static int |
readInts4(ByteBuffer buffer,
int[] array,
int count,
int lowValue) |
static void |
readInts4(InputStream is,
int[] array,
int count) |
static int |
readInts4(InputStream is,
int[] array,
int count,
int lowValue) |
static int |
writeInt4(ByteBuffer bb,
int value,
int highValue,
boolean flush) |
static void |
writeInt4(OutputStream os,
int value) |
static int |
writeInt4(OutputStream out,
int value,
int highValue,
boolean flush) |
static void |
writeInt8(ByteBuffer bb,
int value) |
static void |
writeInt8(OutputStream os,
int value) |
static void |
writeInts4(ByteBuffer bb,
int... values) |
static void |
writeInts4(ByteBuffer bb,
int[] array,
int offset,
int count) |
static void |
writeInts4(OutputStream out,
int... values) |
static void |
writeInts4(OutputStream out,
int[] array,
int offset,
int count) |
public static int readInt4(InputStream is) throws IOException
IOExceptionpublic static void readInts4(InputStream is, int[] array, int count) throws IOException
IOExceptionpublic static int readInts4(InputStream is, int[] array, int count, int lowValue) throws IOException
IOExceptionpublic static void readInts4(ByteBuffer buffer, int[] array, int count) throws IOException
IOExceptionpublic static int readInts4(ByteBuffer buffer, int[] array, int count, int lowValue) throws IOException
IOExceptionpublic static void writeInt4(OutputStream os, int value) throws IOException
IOExceptionpublic static int readInt8(InputStream is) throws IOException
IOExceptionpublic static void writeInt8(OutputStream os, int value) throws IOException
IOExceptionpublic static void writeInt8(ByteBuffer bb, int value) throws IOException
IOExceptionpublic static int readInt4(ByteBuffer buffer) throws IOException
IOExceptionpublic static void writeInts4(ByteBuffer bb, int... values) throws IOException
IOExceptionpublic static void writeInts4(ByteBuffer bb, int[] array, int offset, int count) throws IOException
IOExceptionpublic static void writeInts4(OutputStream out, int... values) throws IOException
IOExceptionpublic static void writeInts4(OutputStream out, int[] array, int offset, int count) throws IOException
IOExceptionpublic static int writeInt4(OutputStream out, int value, int highValue, boolean flush) throws IOException
IOExceptionpublic static int writeInt4(ByteBuffer bb, int value, int highValue, boolean flush) throws IOException
IOExceptionpublic static int readInt8(ByteBuffer buffer) throws IOException
IOExceptionpublic static void readFully(InputStream inputStream, byte[] buffer) throws IOException
IOExceptionpublic static void readFully(InputStream inputStream, byte[] buffer, int offset, int length) throws IOException
IOExceptionCopyright © 2005–2018 Oracle Corporation. All rights reserved.