|
IBM WebSphere eXtreme ScaleTM, Release 6.1.0.5 ObjectGrid API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.websphere.objectgrid.SessionHandleTransformer
public final class SessionHandleTransformer
A helper class to import and export SessionHandle instances in different formats.
| Constructor Summary | |
|---|---|
SessionHandleTransformer()
|
|
| Method Summary | |
|---|---|
static SessionHandle |
fromByteArray(byte[] serializedHandle)
Converts the byte array representation of the handle back into instance form. |
static SessionHandle |
fromString(String stringifiedHandle)
Converts a stringified session handle back into a SessionHandle instance. |
static SessionHandle |
readSessionHandle(DataInput oi)
Reads and returns a SessionHandle instance from the contents of the input stream. |
static byte[] |
toByteArray(SessionHandle sessionHandle)
Converts the sessionHandle instance into a byte array. |
static String |
toString(SessionHandle sessionHandle)
Converts the sessionHandle instance into a small stringified representation. |
static void |
writeSessionHandle(DataOutput oo,
SessionHandle sessionHandle)
Writes the SessionHandle contents into the output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SessionHandleTransformer()
| Method Detail |
|---|
public static byte[] toByteArray(SessionHandle sessionHandle)
sessionHandle - The instance to be converted into a byte array.
public static SessionHandle fromByteArray(byte[] serializedHandle)
serializedHandle - The byte array that was derived from fromByteArray(byte[]).
public static String toString(SessionHandle sessionHandle)
sessionHandle - The instance to be stringified, this value should not be null.
public static SessionHandle fromString(String stringifiedHandle)
stringifiedHandle - A string version of the session handle which was derived from
toString(SessionHandle).
public static void writeSessionHandle(DataOutput oo,
SessionHandle sessionHandle)
throws IOException
oo - The DataOutput stream that the sessionHandle instance will be written into, must not be null.sessionHandle - The session handle instance to write into the stream, must not be null.
IOException
public static SessionHandle readSessionHandle(DataInput oi)
throws IOException
oi - The DataInput stream that the session handle instance will be read from, must not be null.
IOException
|
IBM WebSphere eXtreme ScaleTM, Release 6.1.0.5 ObjectGrid API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||