public class ProtocolInputStream
extends java.lang.Object
Constructor and Description |
---|
ProtocolInputStream(long protocolId,
java.lang.String path)
Öffnet eine Protokolldatei.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public ProtocolInputStream(long protocolId, java.lang.String path) throws de.bsvrz.sys.funclib.losb.exceptions.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.de.bsvrz.sys.funclib.losb.exceptions.FailureException
- Fehler beim Zugriff auf die Datei.public ProtocolResult take() throws de.bsvrz.sys.funclib.losb.exceptions.FailureException
null
wenn alle Datensätze abgefragt wurden.de.bsvrz.sys.funclib.losb.exceptions.FailureException
- Fehler beim Zugriff auf die protokolldatei.public void close()
public void closeAndRename() throws NoncriticalException
NoncriticalException
- Exception