|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.File
org.jscience.io.ExtendedFile
org.jscience.net.ServerLogFile
public class ServerLogFile
ServerLogFile implements a web-server log based on a standard log file.
If a given logfile format is different so that it cannot be parsed by
this implementation, you can simply subclass this implementation and
overwrite the parseLine(String) method.
ServerLogEntry,
Serialized Form| Nested Class Summary | |
|---|---|
protected class |
ServerLogFile.ServerLogEntryEnumerator
|
| Field Summary | |
|---|---|
protected java.text.SimpleDateFormat |
dateFormat
|
| Fields inherited from class java.io.File |
|---|
pathSeparatorChar, separator, separatorChar |
| Constructor Summary | |
|---|---|
ServerLogFile(java.io.File file)
|
|
ServerLogFile(java.lang.String fileName)
|
|
| Method Summary | |
|---|---|
java.util.Enumeration<ServerLogEntry> |
getServerLogEntryEnumerator(Filter<ServerLogEntry> filter)
returns an Enumeration of all ServerLogEntry objects that are accepted by the given filter or all ServerLogEntries if the filter is null. |
protected ServerLogEntry |
parseLine(java.lang.String line)
parses a single line from the log file and constructs a ServerLogEntry |
| Methods inherited from class java.io.File |
|---|
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toString, toURI, toURL |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.text.SimpleDateFormat dateFormat
| Constructor Detail |
|---|
public ServerLogFile(java.lang.String fileName)
public ServerLogFile(java.io.File file)
| Method Detail |
|---|
public java.util.Enumeration<ServerLogEntry> getServerLogEntryEnumerator(Filter<ServerLogEntry> filter)
ServerLog
getServerLogEntryEnumerator in interface ServerLogServerLogEntryprotected ServerLogEntry parseLine(java.lang.String line)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||