Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
private static char[] |
BUF |
private static org.apache.commons.logging.Log |
LOG |
private Reader |
reader |
private Writer |
writer |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Modifier | Constructor and Description |
|---|---|
private |
ReaderWriterPipeThread(Reader reader,
Writer writer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the thread.
|
static ReaderWriterPipeThread |
instantiate(Reader reader,
Writer writer)
Will create a thread that reads from reader and writes to write
until reader reaches EOF.
|
void |
run() |
void |
setWriter(Writer writer) |
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, yieldprivate static final org.apache.commons.logging.Log LOG
private static final char[] BUF
private final Reader reader
private Writer writer
public static ReaderWriterPipeThread instantiate(Reader reader, Writer writer)
reader - writer - public void setWriter(Writer writer)
writer - the writer to setpublic void close()
Copyright © 2006–2018 Simuline Organization (l2r). All rights reserved.