public class Util extends Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static void |
checkSerializable(Object obj) |
static void |
copyFile(File src,
File dest) |
static void |
copyStream(InputStream in,
OutputStream out) |
static int |
hashCode(byte[] data) |
static String |
inputStreamToString(InputStream in) |
static void |
streamXML(Document doc,
OutputStream out) |
static void |
throwUncheckedException(Throwable t) |
static long |
toMillis(long duration,
TimeUnit unit)
-1 means infinite.
|
static void |
writeText(String str,
OutputStream out) |
public static void checkSerializable(Object obj)
public static void throwUncheckedException(Throwable t)
public static int hashCode(byte[] data)
public static long toMillis(long duration, TimeUnit unit)
duration
- unit
- public static void copyStream(InputStream in, OutputStream out) throws IOException
IOException
public static String inputStreamToString(InputStream in) throws IOException
IOException
public static void streamXML(Document doc, OutputStream out)
public static void writeText(String str, OutputStream out)
Copyright © 2013 Hazelcast, Inc.. All rights reserved.