|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jtools.io.psoutput.OmittableOutputFile
public class OmittableOutputFile
PrintStreamOutput implementation that enables file omitting if files are identical.
Nested Class Summary | |
---|---|
class |
OmittableOutputFile.DifferentLine
|
Nested classes/interfaces inherited from interface org.jtools.io.psoutput.PrintStreamOutput |
---|
PrintStreamOutput.Result |
Constructor Summary | |
---|---|
OmittableOutputFile(File dir)
|
|
OmittableOutputFile(File dir,
File cmpDir,
String tmpFilePrefix,
String tmpFileSuffix,
boolean omitOnIdent,
long fileTime)
|
Method Summary | |
---|---|
PrintStreamOutput.Result |
execute()
executes operations after all content is written to the printstream. |
File |
getCmpFile()
|
File |
getFile()
|
String |
getOutputFilename(String defaultName)
get the OutputFilename if available or defaultName if not. |
PrintStream |
getPrintStream()
get the PrintStream to write to. |
File |
getTmpFile()
|
void |
setCmpFilename(String name)
set the filename to compare with. |
void |
setFilename(String name)
set the filename. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OmittableOutputFile(File dir) throws IOException
IOException
public OmittableOutputFile(File dir, File cmpDir, String tmpFilePrefix, String tmpFileSuffix, boolean omitOnIdent, long fileTime) throws IOException
IOException
Method Detail |
---|
public PrintStreamOutput.Result execute() throws IOException
PrintStreamOutput
execute
in interface PrintStreamOutput
IOException
public File getCmpFile()
public File getFile()
public String getOutputFilename(String defaultName)
PrintStreamOutput
getOutputFilename
in interface PrintStreamOutput
public PrintStream getPrintStream() throws IOException
PrintStreamOutput
getPrintStream
in interface PrintStreamOutput
IOException
public File getTmpFile() throws IOException
IOException
public void setCmpFilename(String name)
PrintStreamOutput
setCmpFilename
in interface PrintStreamOutput
public void setFilename(String name)
PrintStreamOutput
setFilename
in interface PrintStreamOutput
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |