|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuka.patch.PatchReader
Parser for the patch wire protocol created with a PatchWriter object. This class implements the wire protocol part
of the PatchInput interface.
| Field Summary | |
(package private) int |
booleanCnt
|
(package private) boolean |
booleanValue
|
(package private) int |
diffCnt
|
(package private) int |
doubleCnt
|
(package private) double |
doubleValue
|
(package private) int |
floatCnt
|
(package private) float |
floatValue
|
(package private) int |
fromRank
|
(package private) UnmarshalStream |
in
|
(package private) int |
intCnt
|
(package private) int |
intValue
|
(package private) LayeredObjectSpace |
layeredObjectSpace
|
(package private) int |
longCnt
|
(package private) long |
longValue
|
(package private) int |
notModifiedCnt
|
(package private) int |
objectCnt
|
(package private) java.lang.Object |
objectValue
|
| 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 | |
PatchReader(ObjectSpace objects)
|
|
PatchReader(ObjectSpace objects,
int fromRank)
|
|
| Method Summary | |
void |
beginPatch()
|
int |
beginPatchRecord()
|
void |
clear()
|
void |
endPatch()
|
void |
endPatchRecord()
|
boolean |
getDiffAsBoolean()
|
byte |
getDiffAsByte()
|
char |
getDiffAsChar()
|
double |
getDiffAsDouble()
|
float |
getDiffAsFloat()
|
int |
getDiffAsInt()
Reads the updated value, if a patch record is available. |
long |
getDiffAsLong()
|
java.lang.Object |
getDiffAsObject()
Reads the updated reference value, if the last call to hasDiff() returned true. |
short |
getDiffAsShort()
|
int |
getFromRank()
Experimental low-level API. |
UnmarshalStream |
getInput()
Experimental low-level API: Patch creation for the expert. |
UnmarshalStream |
getUnmarshalStream()
|
boolean |
hasDiff()
Checks whether there is a patch record available for the next instance variable. |
ObjectSpace |
init()
|
void |
installOverlay()
|
int |
rawReadInt()
|
void |
setUnmarshalStream(UnmarshalStream in)
|
void |
uninstallOverlay()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface uka.patch.PatchInput |
applyPatchAnonymous |
| Field Detail |
int fromRank
UnmarshalStream in
LayeredObjectSpace layeredObjectSpace
int diffCnt
int notModifiedCnt
int booleanCnt
boolean booleanValue
int intCnt
int intValue
int longCnt
long longValue
int floatCnt
float floatValue
int doubleCnt
double doubleValue
int objectCnt
java.lang.Object objectValue
| Constructor Detail |
public PatchReader(ObjectSpace objects)
throws java.io.IOException
public PatchReader(ObjectSpace objects,
int fromRank)
throws java.io.IOException
| Method Detail |
public void setUnmarshalStream(UnmarshalStream in)
public UnmarshalStream getUnmarshalStream()
public ObjectSpace init()
public void beginPatch()
throws java.io.IOException
java.io.IOException
public void endPatch()
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundExceptionpublic void clear()
public void installOverlay()
public void uninstallOverlay()
public int beginPatchRecord()
throws java.io.IOException
java.io.IOException
public void endPatchRecord()
throws java.io.IOException
java.io.IOException
public boolean hasDiff()
throws java.io.IOException,
java.lang.ClassNotFoundException
PatchInput
hasDiff in interface PatchInputjava.io.IOException
java.lang.ClassNotFoundExceptionPatchable.applyPatch(java.lang.Object, uka.patch.PatchInput)
public boolean getDiffAsBoolean()
throws java.io.IOException
getDiffAsBoolean in interface PatchInputjava.io.IOExceptionPatchInput.getDiffAsInt()
public byte getDiffAsByte()
throws java.io.IOException
getDiffAsByte in interface PatchInputjava.io.IOExceptionPatchInput.getDiffAsInt()
public char getDiffAsChar()
throws java.io.IOException
getDiffAsChar in interface PatchInputjava.io.IOExceptionPatchInput.getDiffAsInt()
public short getDiffAsShort()
throws java.io.IOException
getDiffAsShort in interface PatchInputjava.io.IOExceptionPatchInput.getDiffAsInt()
public int getDiffAsInt()
throws java.io.IOException
PatchInput
getDiffAsInt in interface PatchInputjava.io.IOExceptionPatchInput.hasDiff(),
Patchable.applyPatch(java.lang.Object, uka.patch.PatchInput)
public float getDiffAsFloat()
throws java.io.IOException
getDiffAsFloat in interface PatchInputjava.io.IOExceptionPatchInput.getDiffAsInt()
public long getDiffAsLong()
throws java.io.IOException
getDiffAsLong in interface PatchInputjava.io.IOExceptionPatchInput.getDiffAsInt()
public double getDiffAsDouble()
throws java.io.IOException
getDiffAsDouble in interface PatchInputjava.io.IOExceptionPatchInput.getDiffAsInt()
public java.lang.Object getDiffAsObject()
throws java.io.IOException
PatchInputPatchInput.hasDiff() returned true. The returned object
reference is assigned to the currently patched instance
variable of the patchable object and the
corresponding instance variable of its backup copy.
getDiffAsObject in interface PatchInputjava.io.IOException
public int rawReadInt()
throws java.io.IOException
java.io.IOException
public UnmarshalStream getInput()
throws java.io.IOException
getInput in interface PatchInputjava.io.IOExceptionpublic int getFromRank()
getFromRank in interface PatchInput
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||