|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.7.0) E10653-08 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jbo.common.TypeMarshaller
public class TypeMarshaller
Provides methods for passing primitive Java values between the client and middle tier as byte streams.
Constructor Summary | |
---|---|
TypeMarshaller()
|
Method Summary | |
---|---|
static byte[] |
createStream(boolean val)
Serializes a Java boolean value. |
static byte[] |
createStream(byte val)
Serializes an 8-bit Java integer value. |
static byte[] |
createStream(char val)
Serializes a Java character. |
static byte[] |
createStream(java.lang.Class cls,
java.lang.Object obj)
Serializes a Java object of a specified class. |
static byte[] |
createStream(double val)
Serializes a 64-bit Java floating-point value. |
static byte[] |
createStream(float val)
Serializes a 32-bit Java floating-point value. |
static byte[] |
createStream(int val)
Serializes a 32-bit Java integer value. |
static byte[] |
createStream(long val)
Serializes a 64-bit Java integer value. |
static byte[] |
createStream(java.lang.Object obj)
|
static byte[] |
createStream(short val)
Serializes a 16-bit Java integer value. |
static java.lang.Object |
marshalUnserial(java.lang.Object obj)
|
static boolean |
readBoolean(byte[] byteStream)
Reads a boolean value from a byte stream. |
static byte |
readByte(byte[] byteStream)
Reads an 8-bit Java integer from a byte stream. |
static char |
readChar(byte[] byteStream)
Reads a Java character from a byte stream. |
static double |
readDouble(byte[] byteStream)
Reads a 64-bit Java floating-point number from a byte stream. |
static float |
readFloat(byte[] byteStream)
Reads a 32-bit Java floating-point number from a byte stream. |
static int |
readInt(byte[] byteStream)
Reads a 32-bit Java integer from a byte stream. |
static long |
readLong(byte[] byteStream)
Reads a 64-bit Java integer from a byte stream. |
static java.lang.Object |
readObject(byte[] stream)
|
static java.lang.Object |
readObject(java.lang.Class cls,
byte[] stream)
Reads a Java object of a specified class from a byte stream. |
static short |
readShort(byte[] byteStream)
Reads a 16-bit Java integer from a byte stream. |
static java.lang.String |
readString(byte[] byteStream)
Reads a Java string from a byte stream. |
static ResponseValues |
serializeObject(java.io.Serializable obj)
|
static java.lang.Object |
unMarshalUnserial(java.lang.Object obj)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TypeMarshaller()
Method Detail |
---|
public static final byte[] createStream(java.lang.Class cls, java.lang.Object obj) throws DataCreationException
cls
- a Java primitive type.obj
- n instance of cls
.
DataCreationException
- if obj
cannot be serialized.public static final byte[] createStream(java.lang.Object obj)
public static final java.lang.Object readObject(byte[] stream)
public static final java.lang.Object readObject(java.lang.Class cls, byte[] stream) throws DataCreationException
cls
- a Java primitive type.stream
- serialized data.
cls
.
DataCreationException
- if the stream does not contain an object of
the expected class.public static final byte[] createStream(int val) throws DataCreationException
val
- a 32-bit Java integer value.
DataCreationException
public static final byte[] createStream(short val) throws DataCreationException
val
- a 16-bit Java integer value.
DataCreationException
public static final byte[] createStream(long val) throws DataCreationException
val
- a 64-bit Java integer value.
DataCreationException
public static final byte[] createStream(float val) throws DataCreationException
val
- a 32-bit Java floating-point value.
DataCreationException
public static final byte[] createStream(double val) throws DataCreationException
val
- a 64-bit Java floating-point value.
DataCreationException
public static final byte[] createStream(byte val) throws DataCreationException
val
- an 8-bit Java integer value.
DataCreationException
public static final byte[] createStream(boolean val) throws DataCreationException
val
- a Java boolean value.
DataCreationException
public static final byte[] createStream(char val) throws DataCreationException
val
- a Java character.
DataCreationException
public static final java.lang.String readString(byte[] byteStream) throws DataCreationException
byteStream
- serialized data.
DataCreationException
public static final int readInt(byte[] byteStream) throws DataCreationException
byteStream
- serialized data.
DataCreationException
public static final short readShort(byte[] byteStream) throws DataCreationException
byteStream
- serialized data.
DataCreationException
public static final long readLong(byte[] byteStream) throws DataCreationException
byteStream
- serialized data.
DataCreationException
public static final float readFloat(byte[] byteStream) throws DataCreationException
byteStream
- serialized data.
DataCreationException
public static final double readDouble(byte[] byteStream) throws DataCreationException
byteStream
- serialized data.
DataCreationException
public static final byte readByte(byte[] byteStream) throws DataCreationException
byteStream
- serialized data.
DataCreationException
public static final boolean readBoolean(byte[] byteStream) throws DataCreationException
byteStream
- serialized data.
DataCreationException
public static final char readChar(byte[] byteStream) throws DataCreationException
byteStream
- serialized data.
DataCreationException
public static ResponseValues serializeObject(java.io.Serializable obj)
public static final java.lang.Object marshalUnserial(java.lang.Object obj)
public static final java.lang.Object unMarshalUnserial(java.lang.Object obj)
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.7.0) E10653-08 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |