public class Chasen.Result extends Object
Chasen.parse
.Modifier | Constructor and Description |
---|---|
protected |
Chasen.Result() |
Modifier and Type | Method and Description |
---|---|
void |
discard()
Discard all remaining result lines.
|
boolean |
hasNext()
Returns
true if there is an additional result line returned by the
chasen process. |
protected void |
init(int expectedEOS)
Prepares the result object for a new result iteration.
|
Object |
next()
Returns the next result line returned by the chasen process.
|
protected void init(int expectedEOS)
expectedEOS
- EOS lines expected from Chasen process.public boolean hasNext()
true
if there is an additional result line returned by the
chasen process. Returns false
if there is no next result line, either
because all chasen output has been read, or because an IO error occurred.public Object next() throws NoSuchElementException
EOS
, EOP
, or a List
of Strings
with the result fields. The list is reused across multiple calls to next
;
if you want to keep the results, copy the list.NoSuchElementException
- if there is no next result line.public void discard()
Copyright © 2001-2013 the JGloss developers. All Rights Reserved.