public abstract class PrintStreamFactory extends Object
| Constructor and Description |
|---|
PrintStreamFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract PrintStream |
createPrintStream(String file) |
PrintStream |
createPrintStream(String path,
String tname) |
abstract void |
init(String file,
String path) |
public PrintStream createPrintStream(String path, String tname) throws IOException
path - pathtname - target nameIOException - may throw exception on failurepublic abstract PrintStream createPrintStream(String file) throws IOException
file - file to print toIOException - may throw exception on failureCopyright © 2020. All rights reserved.