|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jbo.common.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 ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.