org.jwall.web.audit.io
Class AuditFormat
java.lang.Object
org.jwall.web.audit.io.AuditFormat
public abstract class AuditFormat
- extends java.lang.Object
This class defines several constants for AuditLog file formats. In addition
to that it provides a simple static guess-method for a best-effort guess of
a file or input-stream. This will result in either a code for a log-format
or -1 if no proper format has been found.
- Author:
- Christian Bockerman <chris@jwall.org>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNKNOWN_FORMAT
public static final int UNKNOWN_FORMAT
- See Also:
- Constant Field Values
APACHE_ACCESS_LOG
public static final int APACHE_ACCESS_LOG
- See Also:
- Constant Field Values
MOD_SECURITY_1_X_SERIAL_LOG
public static final int MOD_SECURITY_1_X_SERIAL_LOG
- See Also:
- Constant Field Values
MOD_SECURITY_2_X_SERIAL_LOG
public static final int MOD_SECURITY_2_X_SERIAL_LOG
- See Also:
- Constant Field Values
MOD_SECURITY_2_X_CONCURRENT_LOG
public static final int MOD_SECURITY_2_X_CONCURRENT_LOG
- See Also:
- Constant Field Values
FORMAT_NAMES
public static final java.lang.String[] FORMAT_NAMES
AuditFormat
public AuditFormat()
guessFormat
public static int guessFormat(java.io.File inFile)
throws java.lang.Exception
- Throws:
java.lang.Exception
guessFormat
public static int guessFormat(java.io.InputStream in)
throws java.lang.Exception
- Throws:
java.lang.Exception
isAccessLog
public static boolean isAccessLog(java.io.BufferedReader r)
throws java.lang.Exception
- Throws:
java.lang.Exception
isConcurrent2xLog
public static boolean isConcurrent2xLog(java.io.BufferedReader r)
throws java.lang.Exception
- Throws:
java.lang.Exception
isSerial1xLog
public static boolean isSerial1xLog(java.io.BufferedReader r)
throws java.lang.Exception
- Throws:
java.lang.Exception
isSerial2xLog
public static boolean isSerial2xLog(java.io.BufferedReader r)
throws java.lang.Exception
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)
- Parameters:
args -