java.lang.AutoCloseablepublic class FileToStreamTailer
extends java.lang.Thread
implements java.lang.AutoCloseable
| Constructor | Description |
|---|---|
FileToStreamTailer(java.io.File file,
java.io.PrintStream stream,
int intervalMsec) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
void |
flush() |
Force a next read, even if we interrupt the thread.
|
void |
interrupt() |
|
void |
run() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitactiveCount, 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, onSpinWait, 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 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