Class PrintStreamFactory


  • public abstract class PrintStreamFactory
    extends Object
    • Constructor Detail

      • PrintStreamFactory

        public PrintStreamFactory()
    • Method Detail

      • init

        public abstract void init​(String file,
                                  String path)
      • createPrintStream

        public PrintStream createPrintStream​(String path,
                                             String tname)
                                      throws IOException
        Parameters:
        path - path
        tname - target name
        Returns:
        PrintStream
        Throws:
        IOException - may throw exception on failure
      • createPrintStream

        public abstract PrintStream createPrintStream​(String file)
                                               throws IOException
        Parameters:
        file - file to print to
        Returns:
        PrintStream
        Throws:
        IOException - may throw exception on failure