|
SalesPoint Framework v3.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlog.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.
| Constructor Summary | |
|---|---|
LogFileContent(File f)
Creates a LogFileContent. |
|
LogFileContent(LogInputStream lis)
Creates a LogFileContent. |
|
| Method Summary | |
|---|---|
List<LogEntry> |
getContentList()
|
void |
update(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 |
| Constructor Detail |
|---|
public LogFileContent(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(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 List<LogEntry> getContentList()
LogEntries
|
SalesPoint Framework v3.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||