uka.patch
Class NullPatchWriter

java.lang.Object
  extended byuka.patch.AbstractPatchWriter
      extended byuka.patch.NullPatchWriter
All Implemented Interfaces:
Constants

public class NullPatchWriter
extends AbstractPatchWriter

Ignores all calls to the AbstractPatchWriter interface. This class is for benchmarking purposes only.


Field Summary
 
Fields inherited from class uka.patch.AbstractPatchWriter
currentID, modified, unmodifiedCnt
 
Fields inherited from interface uka.patch.Constants
CODE_BOOLEAN, CODE_DOUBLE, CODE_END_OF_PATCH, CODE_FLOAT, CODE_INT16, CODE_INT32, CODE_INT64, CODE_INT8, CODE_NOT_MODIFIED, CODE_NULL, CODE_PATCH_HEADER, CODE_REFERENCE, MAX_DISTRIBUTION_RECORDS
 
Constructor Summary
NullPatchWriter()
           
 
Method Summary
 void beginPatch()
           
 void clear()
           
protected  void encode(boolean value)
           
protected  void encode(byte value)
           
protected  void encode(char value)
           
protected  void encode(double value)
           
protected  void encode(float value)
           
protected  void encode(int value)
           
protected  void encode(long value)
           
protected  void encode(short value)
           
protected  void encodeBeginPatch()
           
protected  void encodeEndPatch()
           
protected  void encodeNull()
           
protected  void encodePatchHeader(int id)
           
protected  java.lang.Object encodeReference(java.lang.Object ref)
           
protected  void encodeUnmodifiedCnt(int cnt)
           
 void endPatch()
           
 MarshalStream getOutput(int rank)
           
 void init(java.lang.Object root)
           
 void rawWriteInt(int value)
           
 
Methods inherited from class uka.patch.AbstractPatchWriter
beginPatchRecord, endPatchRecord, flushUnmodified, write, write, write, write, write, write, write, write, writeNotModified, writeNull, writeReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullPatchWriter

public NullPatchWriter()
Method Detail

init

public void init(java.lang.Object root)
Specified by:
init in class AbstractPatchWriter

clear

public void clear()
Specified by:
clear in class AbstractPatchWriter

beginPatch

public void beginPatch()
Specified by:
beginPatch in class AbstractPatchWriter

endPatch

public void endPatch()
Specified by:
endPatch in class AbstractPatchWriter

encodeBeginPatch

protected void encodeBeginPatch()
Specified by:
encodeBeginPatch in class AbstractPatchWriter

encodeEndPatch

protected void encodeEndPatch()
Specified by:
encodeEndPatch in class AbstractPatchWriter

encodePatchHeader

protected void encodePatchHeader(int id)
Specified by:
encodePatchHeader in class AbstractPatchWriter

encodeUnmodifiedCnt

protected void encodeUnmodifiedCnt(int cnt)
Specified by:
encodeUnmodifiedCnt in class AbstractPatchWriter

encodeNull

protected void encodeNull()
Specified by:
encodeNull in class AbstractPatchWriter

encodeReference

protected java.lang.Object encodeReference(java.lang.Object ref)
Specified by:
encodeReference in class AbstractPatchWriter

encode

protected void encode(boolean value)
Specified by:
encode in class AbstractPatchWriter

encode

protected void encode(byte value)
Specified by:
encode in class AbstractPatchWriter

encode

protected void encode(char value)
Specified by:
encode in class AbstractPatchWriter

encode

protected void encode(short value)
Specified by:
encode in class AbstractPatchWriter

encode

protected void encode(int value)
Specified by:
encode in class AbstractPatchWriter

encode

protected void encode(float value)
Specified by:
encode in class AbstractPatchWriter

encode

protected void encode(long value)
Specified by:
encode in class AbstractPatchWriter

encode

protected void encode(double value)
Specified by:
encode in class AbstractPatchWriter

rawWriteInt

public void rawWriteInt(int value)
                 throws java.io.IOException
Specified by:
rawWriteInt in class AbstractPatchWriter
Throws:
java.io.IOException

getOutput

public MarshalStream getOutput(int rank)
                        throws java.io.IOException
Specified by:
getOutput in class AbstractPatchWriter
Throws:
java.io.IOException