Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
private ByteBuffer |
buffer |
(package private) boolean |
finished |
private InputStream |
source |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
OutputReader(InputStream source) |
Modifier and Type | Method and Description |
---|---|
private void |
addToBuffer(byte[] bytes,
int length) |
String |
getResult() |
boolean |
isFinished() |
void |
run() |
private void |
setFinished() |
void |
waitUntilFinished() |
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
private final InputStream source
private ByteBuffer buffer
boolean finished
public OutputReader(InputStream source)
private void setFinished()
public boolean isFinished()
public void waitUntilFinished()
private void addToBuffer(byte[] bytes, int length)
public String getResult()