public final class IOUtil extends Object
Constructor and Description |
---|
IOUtil() |
Modifier and Type | Method and Description |
---|---|
static Data |
addDelta(Data intData,
int delta) |
static Data |
addDelta(Data longData,
long delta) |
static void |
closeResource(Closeable closeable) |
static byte[] |
compress(byte[] input) |
static int |
copyFromDirectToDirectBuffer(ByteBuffer src,
ByteBuffer dest) |
static int |
copyToDirectBuffer(ByteBuffer src,
ByteBuffer dest) |
static int |
copyToHeapBuffer(ByteBuffer src,
ByteBuffer dest) |
static byte[] |
decompress(byte[] compressedData) |
static boolean |
getBoolean(ByteBuffer bb) |
static long |
getLong(Data longData) |
static InputStream |
newInputStream(ByteBuffer buf) |
static OutputStream |
newOutputStream(ByteBuffer buf) |
static void |
putBoolean(ByteBuffer bb,
boolean value) |
static String |
readLongString(DataInput in) |
static byte[] |
serializeToBytes(Object object) |
static Object |
serializeToObject(byte[] bytes) |
static Data |
toData(Object obj) |
static Object |
toObject(Data data) |
static Object |
toObject(DataHolder dataHolder) |
static void |
writeLongString(DataOutput dos,
String str) |
public 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 int copyFromDirectToDirectBuffer(ByteBuffer src, ByteBuffer dest)
public static void writeLongString(DataOutput dos, String str) throws IOException
IOException
public static String readLongString(DataInput in) throws IOException
IOException
public static void putBoolean(ByteBuffer bb, boolean value)
public static boolean getBoolean(ByteBuffer bb)
public static long getLong(Data longData)
public static Object toObject(DataHolder dataHolder)
public static Object serializeToObject(byte[] bytes) throws Exception
Exception
public static byte[] serializeToBytes(Object object) throws Exception
Exception
public static byte[] compress(byte[] input) throws IOException
IOException
public static byte[] decompress(byte[] compressedData) throws IOException
IOException
public static void closeResource(Closeable closeable)
Copyright © 2013 Hazelcast, Inc.. All rights reserved.