|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.magicproject.tools.ReferencePager
public class ReferencePager
This class is used to maintain references between reference name and offsets.
When the pager is enabled, reference name are not written to the given output
stream, but the reference is added and would be written later as an index.
When the pager is disabled, reference name are directly written to the given
output stream.
Field Summary | |
---|---|
static int |
MAX_OFFSET
The maximum offset position. |
Constructor Summary | |
---|---|
ReferencePager()
Create a new instance of this class. |
Method Summary | |
---|---|
void |
addReference(java.io.OutputStream out,
java.lang.String referenceName)
Add a reference to this pager. |
void |
enable(boolean enabled)
Enable/Disable this pager. |
boolean |
isEnabled()
Return true if this pager is enabled. |
void |
write(java.io.OutputStream out)
Write the pager content. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAX_OFFSET
Constructor Detail |
---|
public ReferencePager()
Method Detail |
---|
public void addReference(java.io.OutputStream out, java.lang.String referenceName)
out
- the destination output stream.referenceName
- the reference to write.public void write(java.io.OutputStream out)
out
- the destination output stream.public void enable(boolean enabled)
enabled
- the boolean flag.public boolean isEnabled()
true
if this pager is enabled.
true
if this pager is enabled.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |