|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.fostore.ObjectTranscriber.AbstractTranscriber
org.apache.jdo.impl.fostore.ObjectTranscriber.ArrayTranscriber
Abstract class which provides support for transcribing arrays of any type. For each type of array, there should be a subclass.
ObjectTranscriber.IntArrayTranscriber
Field Summary | |
private int |
fieldNum
|
private java.lang.Object |
owner
|
Constructor Summary | |
(package private) |
ObjectTranscriber.ArrayTranscriber()
|
Method Summary | |
(package private) java.lang.Object |
fetch(java.io.DataInput in,
java.lang.Object owner,
int fieldNum)
Fetches the entire array by delegating to fetchElements. |
(package private) abstract java.lang.Object |
fetchElements(java.io.DataInput in,
int length)
Creates an array of some type and returns it, after reading in all the array's element's values. |
protected int |
getFieldNum()
|
protected java.lang.Object |
getOwner()
|
(package private) void |
skip(java.io.DataInput in)
Skips the entire array by delegating to skipElements. |
(package private) abstract void |
skipElements(java.io.DataInput in,
int length)
Skips an array of some type after skipping all the array's element's values. |
(package private) void |
store(java.lang.Object value,
FOStoreOutput out)
Stores the entire array by delegating the storing of each element to the storeElement method, which is implemented by a subclass. |
(package private) abstract void |
storeElement(java.lang.Object value,
FOStoreOutput out,
int index)
Stores a single element of an array. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.Object owner
private int fieldNum
Constructor Detail |
ObjectTranscriber.ArrayTranscriber()
Method Detail |
protected java.lang.Object getOwner()
protected int getFieldNum()
final void store(java.lang.Object value, FOStoreOutput out) throws java.io.IOException
store
in class ObjectTranscriber.AbstractTranscriber
java.io.IOException
abstract void storeElement(java.lang.Object value, FOStoreOutput out, int index) throws java.io.IOException, java.lang.IllegalArgumentException, java.lang.ArrayIndexOutOfBoundsException
value
- An array of some type. The type of the array is
conditional on the class which is implementing this method.out
- Where the value should be storedindex
- Index into the value which should be stored.
java.io.IOException
java.lang.IllegalArgumentException
java.lang.ArrayIndexOutOfBoundsException
final java.lang.Object fetch(java.io.DataInput in, java.lang.Object owner, int fieldNum) throws java.lang.Exception
fetch
in class ObjectTranscriber.AbstractTranscriber
java.lang.Exception
final void skip(java.io.DataInput in) throws java.io.IOException
skip
in class ObjectTranscriber.AbstractTranscriber
java.io.IOException
abstract java.lang.Object fetchElements(java.io.DataInput in, int length) throws java.lang.Exception, java.lang.IllegalArgumentException, java.lang.ArrayIndexOutOfBoundsException
in
- Place from where the array's values should be readlength
- Length of the array to create.
java.lang.Exception
java.lang.IllegalArgumentException
java.lang.ArrayIndexOutOfBoundsException
abstract void skipElements(java.io.DataInput in, int length) throws java.io.IOException
in
- Place from where the array's values should be readlength
- Length of the array.
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |