public class SetsBlock extends org.biojavax.bio.phylo.io.nexus.NexusBlock.Abstract
SETS
block of a Nexus file. (Only
CharSet
commands are stored.)Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SETS_BLOCK |
Constructor and Description |
---|
SetsBlock() |
Modifier and Type | Method and Description |
---|---|
void |
addCharSet(java.lang.String name)
Adds a new character set with the specified name, if not already present.
|
void |
addCharSetInterval(java.lang.String name,
int start,
int end)
Adds the specified interval to the specified character set.
|
CharSet |
getCharSet(java.lang.String name) |
java.util.Collection<CharSet> |
values() |
protected void |
writeBlockContents(java.io.Writer writer)
The implementation of this method is empty since it is not used in HIR-Finder.
|
public static final java.lang.String SETS_BLOCK
public SetsBlock()
public void addCharSet(java.lang.String name)
name
- public void addCharSetInterval(java.lang.String name, int start, int end)
name
- start
- end
- java.lang.IllegalArgumentException
- if there is no character set with the specified name
present.public CharSet getCharSet(java.lang.String name)
protected void writeBlockContents(java.io.Writer writer) throws java.io.IOException
writeBlockContents
in class org.biojavax.bio.phylo.io.nexus.NexusBlock.Abstract
java.io.IOException
NexusBlock.Abstract.writeBlockContents(java.io.Writer)