Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
StreamLogger(InputStream is,
PrintStream ps) |
StreamLogger(InputStream is,
String logCategory,
String ignorePattern)
Read from an input stream, logging to category
logCategory , ignoring lines matching the regular expression
specified in ignorePattern . |
Modifier and Type | Method and Description |
---|---|
void |
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
public StreamLogger(InputStream is, String logCategory, String ignorePattern)
logCategory
, ignoring lines matching the regular expression
specified in ignorePattern
. If logCategory
is null
, "unnamed" will be used. If
ignorePattern
is null
, no filtering will be performed. The thread will silently die when it
reaches end-of-file from the input stream.is
- islogCategory
- logCategoryignorePattern
- ignorePatternpublic StreamLogger(InputStream is, PrintStream ps)
Copyright © 2000–2016 DFKI GmbH. All rights reserved.