|
||||||||||
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(java.lang.String blockName)
Construct a block with a given name. |
Method Summary | |
---|---|
java.lang.String |
getBlockName()
Get the block name. |
protected abstract void |
writeBlockContents(java.io.Writer writer)
Implement this to write out block contents, not including the BEGIN and END tags. |
void |
writeObject(java.io.Writer writer)
Writes this object to the given writer. |
protected void |
writeToken(java.io.Writer writer,
java.lang.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(java.lang.String blockName)
blockName
- the name to give the block.Method Detail |
---|
public java.lang.String getBlockName()
NexusBlock
getBlockName
in interface NexusBlock
public void writeObject(java.io.Writer writer) throws java.io.IOException
NexusObject
writeObject
in interface NexusObject
writer
- the writer to write to.
java.io.IOException
- if it could not be written.protected void writeToken(java.io.Writer writer, java.lang.String token) throws java.io.IOException
writer
- the writer to write to.token
- the token to write.
java.io.IOException
- if writing failed.protected abstract void writeBlockContents(java.io.Writer writer) throws java.io.IOException
writer
- the writer to write to.
java.io.IOException
- if writing failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |