|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectthings.data.processing.Decomposer
public class Decomposer
General decomposer.
Version History
EPG - Adapted from autohit - 22 OCT 06
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_DELIMITERS
The default delimiter characters in a string. |
| Constructor Summary | |
|---|---|
Decomposer()
|
|
| Method Summary | |
|---|---|
void |
done()
Done. |
protected void |
finalize()
Finalizer. |
int |
getLineNumber()
Get the current line number. |
boolean |
hasmore()
Return "true" if there are more tokens and/or lines, else "false." |
java.lang.String |
line()
Return the next line. |
java.lang.String |
nonbreaking_token()
Return the next token from the current line. |
java.lang.String |
peekLine()
Look at the current line. |
void |
start(java.io.InputStream ios)
Start a decomposition on an Input Stream using default delimiters. |
void |
start(java.io.InputStream ios,
java.lang.String delimiters)
Start a decomposition on an Input Stream using specified delimiters. |
java.lang.String |
token()
Return the next token. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_DELIMITERS
| Constructor Detail |
|---|
public Decomposer()
| Method Detail |
|---|
public void start(java.io.InputStream ios,
java.lang.String delimiters)
throws java.lang.Throwable
ios - the input stream. It will be closed by this class when it is done with it. Done is either explicitly stated (with done()), the object is finalized, or you start() a new session.delimiters - the delimiters used to decompose tokens. If null, the default will be used, which is SPACE, TAB, CF, LF, and FORM FEED.
java.lang.Throwable
public void start(java.io.InputStream ios)
throws java.lang.Throwable
ios - the input stream. It will be closed by this class when it is done with it. Done is either explicitly stated (with done()), the object is finalized, or you start() a new session.
java.lang.Throwablepublic java.lang.String line()
public java.lang.String peekLine()
public java.lang.String token()
public java.lang.String nonbreaking_token()
public boolean hasmore()
public void done()
public int getLineNumber()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable - but it will not ever happen.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||