|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sam.io.Tracker
This class allows customizable mixing tracking. This is a block-oriented trace that can be used to record checksums or redundancy data.
Field Summary | |
java.lang.String |
description
A human-readable description of this tracker |
java.lang.String |
name
The name of this tracker |
Constructor Summary | |
protected |
Tracker(java.lang.String name,
java.lang.String description)
Builds a new Tracker |
Method Summary | |
static sam.io.Tracker |
get(java.lang.String name)
Gets the tracker of specified name. |
static java.lang.String[] |
getTrackers()
Gets the list of all registered trackers. |
protected abstract void |
load(java.io.DataInputStream input)
Reloads this tracker state |
protected abstract void |
save(java.io.DataOutputStream output)
Saves this tracker state |
void |
update(byte[] data)
Updates this tracker state with specified plain data |
abstract void |
update(byte[] data,
int begin,
int length)
Updates this tracker state with specified plain data Warning This method is not supposed to alter the supplied data although for efficiency reason it is still not prevented from doing it. |
void |
update(int data)
Updates this tracker state with one byte of plain data |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public final java.lang.String name
public final java.lang.String description
Constructor Detail |
protected Tracker(java.lang.String name, java.lang.String description)
Tracker
name
- the desired packer namedescription
- a human-readable descriptionMethod Detail |
public static sam.io.Tracker get(java.lang.String name)
name
- the name of the desired tracker
null
if no tracker has specified namepublic static java.lang.String[] getTrackers()
public abstract void update(byte[] data, int begin, int length)
data
- the plain data to be consideredbegin
- the beginning of the portion of data consideredlength
- the length of the portion of data consideredpublic void update(byte[] data)
data
- the plain data to be consideredpublic void update(int data)
data
- the plain data to be consideredprotected abstract void save(java.io.DataOutputStream output) throws java.io.IOException
java.io.IOException
protected abstract void load(java.io.DataInputStream input) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |