JTools

org.jtools.io.psoutput
Interface PrintStreamOutput

All Known Implementing Classes:
OmittableOutputFile, SimplePrintStream

public interface PrintStreamOutput

abstract output model for writing to a PrintStream.


Nested Class Summary
static interface PrintStreamOutput.Result
          result of PrintStreamOutput's execute method.
 
Method Summary
 PrintStreamOutput.Result execute()
          executes operations after all content is written to the printstream.
 String getOutputFilename(String defaultName)
          get the OutputFilename if available or defaultName if not.
 PrintStream getPrintStream()
          get the PrintStream to write to.
 void setCmpFilename(String filename)
          set the filename to compare with.
 void setFilename(String filename)
          set the filename.
 

Method Detail

execute

PrintStreamOutput.Result execute()
                                 throws IOException
executes operations after all content is written to the printstream.

Throws:
IOException

getOutputFilename

String getOutputFilename(String defaultName)
get the OutputFilename if available or defaultName if not.


getPrintStream

PrintStream getPrintStream()
                           throws IOException
get the PrintStream to write to.

Throws:
IOException

setCmpFilename

void setCmpFilename(String filename)
set the filename to compare with.


setFilename

void setFilename(String filename)
set the filename.


JTools

© 2000-2006, JTools.org.