public final class IOUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static byte |
PRIMITIVE_TYPE_BOOLEAN |
static byte |
PRIMITIVE_TYPE_BYTE |
static byte |
PRIMITIVE_TYPE_DOUBLE |
static byte |
PRIMITIVE_TYPE_FLOAT |
static byte |
PRIMITIVE_TYPE_INTEGER |
static byte |
PRIMITIVE_TYPE_LONG |
static byte |
PRIMITIVE_TYPE_SHORT |
static byte |
PRIMITIVE_TYPE_UTF |
public static final byte PRIMITIVE_TYPE_BOOLEAN
public static final byte PRIMITIVE_TYPE_BYTE
public static final byte PRIMITIVE_TYPE_SHORT
public static final byte PRIMITIVE_TYPE_INTEGER
public static final byte PRIMITIVE_TYPE_LONG
public static final byte PRIMITIVE_TYPE_FLOAT
public static final byte PRIMITIVE_TYPE_DOUBLE
public static final byte PRIMITIVE_TYPE_UTF
public static void writeByteArray(ObjectDataOutput out, byte[] value) throws IOException
IOExceptionpublic static byte[] readByteArray(ObjectDataInput in) throws IOException
IOExceptionpublic static void writeNullableData(ObjectDataOutput out, Data data) throws IOException
IOExceptionpublic static Data readNullableData(ObjectDataInput in) throws IOException
IOExceptionpublic static Data readData(ObjectDataInput in) throws IOException
IOExceptionpublic static ObjectInputStream newObjectInputStream(ClassLoader classLoader, InputStream in) throws IOException
IOExceptionpublic static OutputStream newOutputStream(ByteBuffer buf)
public static InputStream newInputStream(ByteBuffer buf)
public static int copyToHeapBuffer(ByteBuffer src, ByteBuffer dest)
public static int copyToDirectBuffer(ByteBuffer src, ByteBuffer dest)
public static void writeLongString(DataOutput dos, String str) throws IOException
IOExceptionpublic static String readLongString(DataInput in) throws IOException
IOExceptionpublic static byte[] compress(byte[] input)
throws IOException
IOExceptionpublic static byte[] decompress(byte[] compressedData)
throws IOException
IOExceptionpublic static void writeAttributeValue(Object value, ObjectDataOutput out) throws IOException
IOExceptionpublic static Object readAttributeValue(ObjectDataInput in) throws IOException
IOExceptionpublic static void closeResource(Closeable closeable)
closeable - the Closeable to close.Copyright © 2021 Hazelcast, Inc.. All rights reserved.