|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.salespointframework.core.logging.LogFileContent
public class LogFileContent
Represents the content of a log file.
This class takes a log file or a LogInputStream
as parameter, reads all LogEntries
from that file and stores them in a List.
LogTableForm
or writing them to the persistence file when saving the Shop's state.
Field Summary | |
---|---|
private java.util.List<LogEntry> |
m_lContentList
The list which contains all Entries from the log file. |
Constructor Summary | |
---|---|
LogFileContent(java.io.File f)
Creates a LogFileContent. |
|
LogFileContent(LogInputStream lis)
Creates a LogFileContent. |
Method Summary | |
---|---|
java.util.List<LogEntry> |
getContentList()
|
private java.util.List<LogEntry> |
streamToList(LogInputStream lis)
Does the actual conversion from a LogInputStream to a list of LogEntries . |
void |
update(java.io.File f)
Replaces all currently saved LogEntries with new ones. |
void |
update(LogInputStream lis)
Replaces all currently saved LogEntries with new ones. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.List<LogEntry> m_lContentList
Constructor Detail |
---|
public LogFileContent(java.io.File f)
LogEntries
are read from the passed log file and stored
in a list.
f
- the file to be read from.public LogFileContent(LogInputStream lis)
LogEntries
are read from the passed LogInputStream
and stored in a list.
lis
- the LogInputStream
to be read from.Method Detail |
---|
public void update(java.io.File f)
LogEntries
with new ones.
f
- the log file to be read frompublic void update(LogInputStream lis)
LogEntries
with new ones.
lis
- the LogInputStream
to be read from.public java.util.List<LogEntry> getContentList()
LogEntries
private java.util.List<LogEntry> streamToList(LogInputStream lis)
LogInputStream
to a list of LogEntries
.
lis
- the LogInputStream to be read from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |