public class Protocol
extends java.lang.Object
Sample:
Protocol protocol = new Protocol ("MyProt");
// or simply
Protocol protocol = new Protocol ();
protocol.addEntry("what we want to protocol");
protocol.addEntry("more");
...
Constructor and Description |
---|
Protocol()
Constructs a new protocol file with the default name "Protocol.txt"
|
Protocol(java.lang.String fileName)
Constructs a new protocol file with the specified file name
|
Modifier and Type | Method and Description |
---|---|
void |
addEntry(java.lang.String entry)
Adds an entry to the protocol file.
|
void |
close()
Closes the protocol file.
|
protected void |
finalize() |
java.lang.String |
getAbsolutePath() |
public Protocol() throws java.io.IOException
java.io.IOException
public Protocol(java.lang.String fileName) throws java.io.IOException
fileName
- the name of the filejava.io.IOException
public java.lang.String getAbsolutePath()
public void addEntry(java.lang.String entry)
entry
- the entry to addpublic void close()
protected void finalize()
finalize
in class java.lang.Object
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de