org.apache.jdo.impl.fostore
Class ObjectTranscriber.TreeSetTranscriber

java.lang.Object
  extended byorg.apache.jdo.impl.fostore.ObjectTranscriber.AbstractTranscriber
      extended byorg.apache.jdo.impl.fostore.ObjectTranscriber.CollectionTranscriber
          extended byorg.apache.jdo.impl.fostore.ObjectTranscriber.TreeSetTranscriber
All Implemented Interfaces:
org.apache.jdo.store.Transcriber
Enclosing class:
ObjectTranscriber

class ObjectTranscriber.TreeSetTranscriber
extends ObjectTranscriber.CollectionTranscriber

Transcribe TreeSets.


Constructor Summary
(package private) ObjectTranscriber.TreeSetTranscriber()
           
 
Method Summary
(package private)  java.lang.Object fetch(java.io.DataInput in, java.lang.Object owner, int fieldNum)
           
(package private)  void skip(java.io.DataInput in)
          Skips elements of a Collection.
(package private)  void store(java.lang.Object value, FOStoreOutput out)
           
protected  void storeCollection(java.util.Collection obj, FOStoreOutput out)
          Store the elements of the collection.
protected  void writeInfo(java.util.Collection obj, FOStoreOutput out)
          Writes information for Collections, particularly for SCO Collections.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectTranscriber.TreeSetTranscriber

ObjectTranscriber.TreeSetTranscriber()
Method Detail

store

void store(java.lang.Object value,
           FOStoreOutput out)
     throws java.io.IOException
Specified by:
store in class ObjectTranscriber.AbstractTranscriber
Throws:
java.io.IOException

fetch

java.lang.Object fetch(java.io.DataInput in,
                       java.lang.Object owner,
                       int fieldNum)
                 throws java.lang.Exception
Specified by:
fetch in class ObjectTranscriber.AbstractTranscriber
Throws:
java.lang.Exception

skip

void skip(java.io.DataInput in)
    throws java.io.IOException
Description copied from class: ObjectTranscriber.CollectionTranscriber
Skips elements of a Collection.

Overrides:
skip in class ObjectTranscriber.CollectionTranscriber
Parameters:
in - Place from where the array's values should be read
Throws:
java.io.IOException - if there are problems writing information.

writeInfo

protected void writeInfo(java.util.Collection obj,
                         FOStoreOutput out)
                  throws java.io.IOException
Writes information for Collections, particularly for SCO Collections.

Parameters:
obj - Collection (possibly SCO) for which information in written.
out - Output to which information is written.
Throws:
java.io.IOException - if there are problems writing information.

storeCollection

protected void storeCollection(java.util.Collection obj,
                               FOStoreOutput out)
                        throws java.io.IOException
Store the elements of the collection. Freeze the elements, then iterate over them.

Throws:
java.io.IOException