public class OutputFile extends Object
Modifier | Constructor and Description |
---|---|
protected |
OutputFile(PrintStream out,
String filename)
Constructor used by the decorating classes in tests.
|
|
OutputFile(String filename) |
Modifier and Type | Method and Description |
---|---|
void |
addLine(String command) |
void |
close() |
protected String |
getFilename() |
protected PrintStream |
getOut() |
void |
print(String command) |
void |
println(String command) |
String |
toString() |
public OutputFile(String filename) throws IOException
IOException
protected OutputFile(PrintStream out, String filename)
out
- The output streamfilename
- The filename, to use in the toString() methodprotected PrintStream getOut()
protected String getFilename()
public void addLine(String command)
public void println(String command)
public void print(String command)
public void close() throws IOException
IOException
Copyright © 2022 The Apache Software Foundation. All rights reserved.