|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.unboundid.ldap.sdk.unboundidds.logs.ErrorLogReader
@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class ErrorLogReader
NOTE: This class is part of the Commercial Edition of the UnboundID LDAP SDK for Java. It is not available for use in applications that include only the Standard Edition of the LDAP SDK, and is not supported for use in conjunction with non-UnboundID products.This class provides a mechanism for reading message from a Directory Server error log.
Constructor Summary | |
---|---|
ErrorLogReader(java.io.File file)
Creates a new error log reader that will read messages from the specified log file. |
|
ErrorLogReader(java.io.Reader reader)
Creates a new error log reader that will read messages using the provided Reader object. |
|
ErrorLogReader(java.lang.String path)
Creates a new error log reader that will read messages from the specified log file. |
Method Summary | |
---|---|
void |
close()
Closes this error log reader. |
ErrorLogMessage |
read()
Reads the next error log message from the log file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ErrorLogReader(java.lang.String path) throws java.io.IOException
path
- The path of the log file to read.
java.io.IOException
- If a problem occurs while opening the file for
reading.public ErrorLogReader(java.io.File file) throws java.io.IOException
file
- The log file to read.
java.io.IOException
- If a problem occurs while opening the file for
reading.public ErrorLogReader(java.io.Reader reader)
Reader
object.
reader
- The reader to use to read log messages.Method Detail |
---|
public ErrorLogMessage read() throws java.io.IOException, LogException
null
if
there are no more messages to be read.
java.io.IOException
- If an error occurs while trying to read from the
file.
LogException
- If an error occurs while trying to parse the log
message.public void close() throws java.io.IOException
java.io.IOException
- If a problem occurs while closing the reader.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |