public abstract static class NexusBlock.Abstract extends Object implements NexusBlock
NexusBlock.Abstract| Constructor and Description |
|---|
Abstract(String blockName)
Construct a block with a given name.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public String getBlockName()
NexusBlockgetBlockName in interface NexusBlockpublic void writeObject(Writer writer) throws IOException
NexusObjectwriteObject in interface NexusObjectwriter - 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.Copyright © 2020 BioJava. All rights reserved.