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