|
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.ArrayMarshaller
public class ArrayMarshaller
The ArrayMarshaller is a helper class to marshall array of java types into byte streams and vice versa.
Constructor Summary | |
---|---|
ArrayMarshaller()
|
Method Summary | |
---|---|
static byte[] |
createStream(java.lang.Class cls,
java.lang.Object[] obj)
NEW Convert an array of objects into byte stream. |
static byte[] |
createStream(int[] val)
NEW Convert an integer array into byte stream. |
static int[] |
readInt(byte[] byteStream)
NEW Convert byte stream into an array of integers. |
static java.lang.Object[] |
readObject(java.lang.Class cls,
byte[] stream)
Convert byte stream into an array of objects. |
static java.lang.String[] |
readString(byte[] byteStream)
NEW Convert byte stream into an array of Strings. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArrayMarshaller()
Method Detail |
---|
public static final byte[] createStream(java.lang.Class cls, java.lang.Object[] obj) throws DataCreationException
cls
- the class of the object.obj
- the array of objects to be converted.
DataCreationException
- is thrown when there is an error occured in the processpublic static final java.lang.Object[] readObject(java.lang.Class cls, byte[] stream) throws DataCreationException
cls
- the class of the object.stream
- the byte stream to be converted.
DataCreationException
- is thrown when there is an error occured in the processpublic static final byte[] createStream(int[] val) throws DataCreationException
val
- the array of integers to be converted.
DataCreationException
- is thrown when there is an error occured in the processpublic static final java.lang.String[] readString(byte[] byteStream) throws DataCreationException
byteStream
- the byte stream to be converted.
DataCreationException
- is thrown when there is an error occured in the processpublic static final int[] readInt(byte[] byteStream) throws DataCreationException
byteStream
- the byte stream to be converted.
DataCreationException
- is thrown when there is an error occured in the process
|
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 |