public class ThreadedInputStream
extends java.lang.Thread
This project was carried out at:
and supported byGenOpt Copyright (c) 1998-2021, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights reserved.
Modifier and Type | Field and Description |
---|---|
protected java.io.IOException |
ioExc
The IOException stored by this thread
|
(package private) java.io.InputStream |
is
The buffered input stream
|
(package private) java.lang.StringBuffer |
sb
The string buffer that stores the output of the stream
|
Constructor and Description |
---|
ThreadedInputStream(java.io.InputStream inputStream) |
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.String |
getInputStream()
Gets the output input stream that has been buffered
|
void |
run()
Runs this thread and buffers its output
|
void |
throwStoredException()
Throws all exceptions that have been catched when running
run . |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
protected java.io.IOException ioExc
java.io.InputStream is
java.lang.StringBuffer sb
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void throwStoredException() throws java.io.IOException
run
.java.io.IOException
java.lang.String getInputStream()