public class FileToStreamTailer
extends java.lang.Thread
implements java.lang.AutoCloseable
| Constructor and Description |
|---|
FileToStreamTailer(java.io.File file,
java.io.PrintStream stream,
int intervalMsec) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush()
Force a next read, even if we interrupt the thread.
|
void |
interrupt() |
void |
run() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic FileToStreamTailer(java.io.File file,
java.io.PrintStream stream,
int intervalMsec)
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void interrupt()
interrupt in class java.lang.Threadpublic void flush()
public void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exception