|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlp.wrap.LparseWrapper.ErrorStreamProcessor
private class LparseWrapper.ErrorStreamProcessor
A helper thread that reads and parses contents of an lparse standard
error stream and stores the resulting LparseMessage objects in
LparseWrapper.error and LparseWrapper.warnings.
| Field Summary | |
|---|---|
private InputStream |
stream
The InputStream to read stream. |
| Constructor Summary | |
|---|---|
LparseWrapper.ErrorStreamProcessor()
Constructs a new instance of ErrorStreamProcessor. |
|
| Method Summary | |
|---|---|
private void |
parseMessages()
Parses all errors and warnings issued by lparse from its error output stream. |
void |
run()
Runs the thread—here the stream set by setErrorStream(InputStream) is read and parsed. |
void |
setErrorStream(InputStream input)
Sets the error stream to read from. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private InputStream stream
InputStream to read stream.
| Constructor Detail |
|---|
public LparseWrapper.ErrorStreamProcessor()
ErrorStreamProcessor.
| Method Detail |
|---|
public void setErrorStream(InputStream input)
public void run()
setErrorStream(InputStream) is read and parsed. Resulting
LparseMessage objects are stored in
LparseWrapper.error and LparseWrapper.warnings.
run in interface RunnableIOException - (wrapped in an WrapperException) if an
I/O error occurs while parsing the stream
private void parseMessages()
throws IOException
IOException - if an I/O error occurs while parsing the stream
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||