|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.unboundid.ldap.sdk.unboundidds.logs.AccessLogReader
@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class AccessLogReader
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 access log.
Constructor Summary | |
---|---|
AccessLogReader(java.io.File file)
Creates a new access log reader that will read messages from the specified log file. |
|
AccessLogReader(java.io.Reader reader)
Creates a new access log reader that will read messages using the provided Reader object. |
|
AccessLogReader(java.lang.String path)
Creates a new access log reader that will read messages from the specified log file. |
Method Summary | |
---|---|
void |
close()
Closes this error log reader. |
static AccessLogMessage |
parse(java.lang.String s)
Parses the provided string as an access log message. |
AccessLogMessage |
read()
Reads the next access 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 AccessLogReader(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 AccessLogReader(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 AccessLogReader(java.io.Reader reader)
Reader
object.
reader
- The reader to use to read log messages.Method Detail |
---|
public AccessLogMessage 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 static AccessLogMessage parse(java.lang.String s) throws LogException
s
- The string to parse as an access log message.
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 |