|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.datasource.parser.AbstractParser
de.lmu.ifi.dbs.elki.datasource.parser.SimplePolygonParser
public class SimplePolygonParser

Parser to load polygon data (2D and 3D only) from a simple format. One record
per line, points separated by whitespace, numbers separated by colons.
Multiple polygons components can be separated using
POLYGON_SEPARATOR.
Unparseable parts will be treated as labels.
| Nested Class Summary | |
|---|---|
static class |
SimplePolygonParser.Parameterizer
Parameterization class. |
| Field Summary | |
|---|---|
static Pattern |
COORD
Pattern to catch coordinates |
private static Logging |
logger
Class logger |
static String |
POLYGON_SEPARATOR
Polygon separator |
| Fields inherited from class de.lmu.ifi.dbs.elki.datasource.parser.AbstractParser |
|---|
ATTRIBUTE_CONCATENATION, COLUMN_SEPARATOR_ID, COMMENT, NUMBER_PATTERN, QUOTE_CHAR, QUOTE_ID, quoteChar, WHITESPACE_PATTERN |
| Constructor Summary | |
|---|---|
SimplePolygonParser(Pattern colSep,
char quoteChar)
Constructor. |
|
| Method Summary | |
|---|---|
protected Logging |
getLogger()
Get the logger for this class. |
MultipleObjectsBundle |
parse(InputStream in)
Returns a list of the objects parsed from the specified input stream. |
private Object[] |
parseLine(String line)
Parse a single line. |
| Methods inherited from class de.lmu.ifi.dbs.elki.datasource.parser.AbstractParser |
|---|
tokenize, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final Logging logger
public static final Pattern COORD
public static final String POLYGON_SEPARATOR
| Constructor Detail |
|---|
public SimplePolygonParser(Pattern colSep,
char quoteChar)
colSep - quoteChar - | Method Detail |
|---|
public MultipleObjectsBundle parse(InputStream in)
Parser
parse in interface Parserin - the stream to parse objects from
private Object[] parseLine(String line)
line - Line to parse
protected Logging getLogger()
AbstractParser
getLogger in class AbstractParser
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||