|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jutil.TObject
public class TObject
This is the TObject utility code class.
| Constructor Summary | |
|---|---|
TObject()
Ensure that no one can create instances of this Class. |
|
| Method Summary | |
|---|---|
static java.lang.Object |
deserialize(java.io.File file)
|
static java.lang.Object |
deserializeGZIP(java.io.File file)
|
static java.lang.Object |
fromBytes(byte[] bytes)
|
static java.lang.Object |
fromGZipBytes(byte[] bytes)
|
static int |
hash(java.lang.Object obj)
returns an int hashed value of Object obj usage: org.jutil.TObject.hash("123456"); |
static void |
serialize(java.lang.Object object,
java.io.File file)
org.jutil.TObject.serialize(Object object, File file) |
static void |
serializeGZIP(java.lang.Object object,
java.io.File file)
|
static byte[] |
toBytes(java.lang.Object object)
|
static byte[] |
toGZipBytes(java.lang.Object object)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TObject()
| Method Detail |
|---|
public static final void serialize(java.lang.Object object,
java.io.File file)
throws java.io.IOException
java.io.IOException
public static final java.lang.Object deserialize(java.io.File file)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public static final void serializeGZIP(java.lang.Object object,
java.io.File file)
throws java.io.IOException
java.io.IOException
public static final java.lang.Object deserializeGZIP(java.io.File file)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public static final java.lang.Object fromBytes(byte[] bytes)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public static final byte[] toBytes(java.lang.Object object)
throws java.io.IOException
java.io.IOException
public static final java.lang.Object fromGZipBytes(byte[] bytes)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public static final byte[] toGZipBytes(java.lang.Object object)
throws java.io.IOException
java.io.IOExceptionpublic static final int hash(java.lang.Object obj)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||