|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.bsvrz.pua.prot.manager.datamanager.ProtocolInputStream
public class ProtocolInputStream
Klasse zum Zugriff auf gespeicherte Protokolle.
Constructor Summary | |
---|---|
ProtocolInputStream(long protocolId,
java.lang.String path,
boolean read)
Öffnet eine Protokolldatei. |
Method Summary | |
---|---|
void |
close()
Beendet den Zugriff auf das Protokoll. |
void |
closeAndRename()
Beendet den Zugriff auf das Protokoll und nennt das Protokoll in ein gespeichertes Protokoll um. |
ProtocolResult |
take()
Liefert den nächsten Datensatz, der im Protokoll gespeichert ist. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProtocolInputStream(long protocolId, java.lang.String path, boolean read) throws FailureException
protocolId
- protocolId für die Datei, in die geschrieben werden soll.path
- Verzeichnis, in dem das Protokoll abgelegt werden soll. Muss auf File.separator
enden.read
- Das Protokoll wurde bereits abgerufen?
FailureException
- Fehler beim Zugriff auf die Datei.Method Detail |
---|
public ProtocolResult take() throws FailureException
null
wenn alle Datensätze abgefragt wurden.
FailureException
- Fehler beim Zugriff auf die protokolldatei.public void close()
public void closeAndRename()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |