org.openbandy.log
Class LogStorage
java.lang.Object
org.openbandy.log.LogStorage
public class LogStorage
- extends java.lang.Object
This class provides methods to store log messages persistently using the
devices RMS.
(c) Copyright P. Bolliger 2007, ALL RIGHTS RESERVED.
- Version:
- 1.0
- Author:
- Philipp Bolliger (philipp@bolliger.name)
Constructor Summary |
LogStorage(LogImpl logCanvas)
Create a new LogStorage, i.e., open a record store in the RMS. |
Method Summary |
java.lang.String |
getPersistenLogAsString(javax.microedition.lcdui.Display display,
javax.microedition.lcdui.Displayable currentDisplayable)
Return one string object containing all log messages persistently stored
in the devices RMS, formatted according to the specification in
LogHelper.createLogMessage() . |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogStorage
public LogStorage(LogImpl logCanvas)
- Create a new LogStorage, i.e., open a record store in the RMS.
- Parameters:
logCanvas
- Reference to the log canvas
getPersistenLogAsString
public java.lang.String getPersistenLogAsString(javax.microedition.lcdui.Display display,
javax.microedition.lcdui.Displayable currentDisplayable)
- Return one string object containing all log messages persistently stored
in the devices RMS, formatted according to the specification in
LogHelper.createLogMessage()
.
Because this can take very long time, show a progress alert to keep the
user informed about the progress of this method.
- Parameters:
currentDisplayable
-
- Returns:
- String representation of all log messages that are stored in the RMS