de.lmu.ifi.dbs.elki.parser
Class BitVectorLabelParser
java.lang.Object
de.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable
de.lmu.ifi.dbs.elki.parser.AbstractParser<BitVector>
de.lmu.ifi.dbs.elki.parser.BitVectorLabelParser
- All Implemented Interfaces:
- Loggable, Parser<BitVector>, Parameterizable
public class BitVectorLabelParser
- extends AbstractParser<BitVector>
Provides a parser for parsing one BitVector per line, bits separated by whitespace.
Several labels may be given per BitVector.
A label must not be parseable as Bit.
Lines starting with "#" will be ignored.
- Author:
- Arthur Zimek
Constructor Summary |
BitVectorLabelParser()
Provides a parser for parsing one BitVector per line, bits separated by whitespace. |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
addOption, checkGlobalParameterConstraints, deleteOption, description, description, getAttributeSettings, getParameters, getParameterValue, getPossibleOptions, inlineDescription, isSet, setParameters, setParameters |
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
debugFine, debugFiner, debugFinest, exception, message, progress, progress, progress, verbose, verbose, warning |
BitVectorLabelParser
public BitVectorLabelParser()
- Provides a parser for parsing one BitVector per line, bits separated by whitespace.
Several labels may be given per BitVector.
A label must not be parseable as Bit.
Lines starting with "#" will be ignored.
parse
public ParsingResult<BitVector> parse(InputStream in)
- Description copied from interface:
Parser
- Returns a list of the objects parsed from the specified input stream
and a list of the labels associated with the objects.
- Parameters:
in
- the stream to parse objects from
- Returns:
- a list containing those objects parsed
from the input stream and their associated labels.
- See Also:
Parser.parse(java.io.InputStream)
description
public String description()
- Description copied from interface:
Parameterizable
- Returns a description of the class and the required parameters.
This description should be suitable for a usage description as for a standalone application.
- Specified by:
description
in interface Parameterizable
- Overrides:
description
in class AbstractParameterizable
- Returns:
- String a description of the class and the required parameters
- See Also:
Parameterizable.description()