public class ColumnFormat
extends edu.illinois.cs.cogcomp.lbjava.parse.LineByLine
String
s representing the rows
of a file in column format. The input file is assumed to contain fields
of non-whitespace characters separated by any amount of whitespace, one
line of which is usually used to represent a word in a corpus. This
parser breaks a given line into one String
per field,
omitting all of the whitespace. They are then returned in an array via
next()
. If the input line is empty or contains only
whitespace, a zero length array will be returned.Constructor and Description |
---|
ColumnFormat(String file)
Creates the parser.
|
Modifier and Type | Method and Description |
---|---|
Object |
next()
Returns an array of
String s representing the information in
the columns of this row. |
Copyright © 2017. All rights reserved.