| 
 
 | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.erights.e.elib.serial.Replacer
Untamed:  Used to parameterize a SerializationStream.
 
Replacer will probably need more parameters, but we should add them as we find we need them, rather than create another subclass.
Likely additional parameters:
| Constructor Summary | |
Replacer()
Enabled:  | 
|
| Method Summary | |
 SerializationStream | 
getSerializationStream(OutputStream out)
Enabled:  | 
 byte[] | 
record(Object specimen)
Enabled: Record the seriaized form of the specimen and return the resulting byte array.  | 
 void | 
recordFile(File file,
           Object specimen)
Enabled:  | 
protected abstract  Object | 
substitute(Object ref)
Called by SerializationStream to change what gets serialized. | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public Replacer()
| Method Detail | 
protected abstract Object substitute(Object ref)
SerializationStream to change what gets serialized.
ref - The object that needs to somehow get serialized.
public SerializationStream getSerializationStream(OutputStream out)
                                           throws IOException
out - 
IOException
public byte[] record(Object specimen)
              throws IOException
Such recordings can be play()ed by a corresponding Reviver.
IOException
public void recordFile(File file,
                       Object specimen)
                throws IOException
IOException
  | 
 
 | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||