|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojavax.bio.phylo.io.nexus.NexusBlock.Abstract
public abstract static class NexusBlock.Abstract
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.biojavax.bio.phylo.io.nexus.NexusBlock |
---|
NexusBlock.Abstract |
Constructor Summary | |
---|---|
NexusBlock.Abstract(String blockName)
Construct a block with a given name. |
Method Summary | |
---|---|
String |
getBlockName()
Get the block name. |
protected abstract void |
writeBlockContents(Writer writer)
Implement this to write out block contents, not including the BEGIN and END tags. |
void |
writeObject(Writer writer)
Writes this object to the given writer. |
protected void |
writeToken(Writer writer,
String token)
Writes a token and correctly substitutes all symbols in it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NexusBlock.Abstract(String blockName)
blockName
- the name to give the block.Method Detail |
---|
public String getBlockName()
NexusBlock
getBlockName
in interface NexusBlock
public void writeObject(Writer writer) throws IOException
NexusObject
writeObject
in interface NexusObject
writer
- the writer to write to.
IOException
- if it could not be written.protected void writeToken(Writer writer, String token) throws IOException
writer
- the writer to write to.token
- the token to write.
IOException
- if writing failed.protected abstract void writeBlockContents(Writer writer) throws IOException
writer
- the writer to write to.
IOException
- if writing failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |