|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
com.ptc.windchill.upgrade.util.BufferedLineReader
Nested Class Summary | |
private class |
BufferedLineReader.BufferedLineInputStream
|
private class |
BufferedLineReader.InactivityException
|
private class |
BufferedLineReader.Work
|
Field Summary | |
private BufferedLineReader.BufferedLineInputStream |
bufferedLineInputStream_
|
private BufferedReader |
bufferedReader_
|
private int |
ii
|
private long |
inactivityTimeout_
|
private boolean |
lastLineFound_
|
private String |
lastLineInOutputStream_
|
private Integer |
lineTerminator_
|
private Integer |
lineTerminator2_
|
private boolean |
lineTerminatorIsKnown_
|
private int |
maybeADeadProcess_
|
private long |
maybeADeadProcess2_
|
private int |
oldVectorBufferSize_
|
private boolean |
performedCloseAll_
|
private PrintStream |
printStream_
|
private boolean |
test_
|
private Vector |
vectorBuffer_
|
Constructor Summary | |
BufferedLineReader(long inactivity_timeout,
String last_line)
Buffer characters until a whole line can be read, but insist that data is actively arriving. |
|
BufferedLineReader(String last_line)
Buffer characters until a whole line can be read. |
Method Summary | |
void |
closeAll()
Used to close prior to reading the lastLineInOutputStream. |
PrintStream |
createPrintStream()
Allows for output to be read before execution completes. |
private BufferedReader |
getBufferedReader()
|
private InputStream |
getInputStream()
|
String |
readNextLine()
Read a whole line (an actual line terminator was found). |
private String |
readOneLineWithTimer(long max_time_diff)
Used only if the inactivity timeout is non-zero. |
void |
write(int b)
Required public by the parent OutputStream class. |
Methods inherited from class java.io.OutputStream |
close, flush, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private boolean lastLineFound_
private String lastLineInOutputStream_
private long inactivityTimeout_
private Vector vectorBuffer_
private PrintStream printStream_
private boolean performedCloseAll_
private BufferedReader bufferedReader_
private BufferedLineReader.BufferedLineInputStream bufferedLineInputStream_
private boolean lineTerminatorIsKnown_
private Integer lineTerminator_
private Integer lineTerminator2_
private int maybeADeadProcess_
private long maybeADeadProcess2_
private int oldVectorBufferSize_
private boolean test_
private int ii
Constructor Detail |
public BufferedLineReader(String last_line)
last_line
- Used to detect the end of usable data (instead of a null).public BufferedLineReader(long inactivity_timeout, String last_line)
inactivity_timeout
- Max milliseconds to detect each line of data.last_line
- Used to detect the end of usable data (instead of a null).Method Detail |
public void write(int b)
b
- One byte.public PrintStream createPrintStream()
public String readNextLine() throws IOException
IOException
- An error occured.public void closeAll()
private BufferedReader getBufferedReader()
private InputStream getInputStream()
private String readOneLineWithTimer(long max_time_diff) throws IOException, BufferedLineReader.InactivityException
IOException
BufferedLineReader.InactivityException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |