com.jmw.tzap.savers
Class SizeModifiedOnlySaver

java.lang.Object
  extended by com.jmw.tzap.savers.SizeModifiedOnlySaver
All Implemented Interfaces:
FileSaver

public class SizeModifiedOnlySaver
extends java.lang.Object
implements FileSaver

Saves the file only if it is a different size than the original. This is expected to be the case if there was any modification along the way, whether to the original the output or any of the steps taken by Text-Zap.

Author:
Judah Wischnitzer

Constructor Summary
SizeModifiedOnlySaver()
           
 
Method Summary
 int save(FilterFile ff)
           
 void setFrom(java.lang.String s)
           
 void setTo(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SizeModifiedOnlySaver

public SizeModifiedOnlySaver()
Method Detail

save

public int save(FilterFile ff)
         throws java.io.IOException
Specified by:
save in interface FileSaver
Throws:
java.io.IOException

setFrom

public void setFrom(java.lang.String s)
Specified by:
setFrom in interface FileSaver

setTo

public void setTo(java.lang.String s)
Specified by:
setTo in interface FileSaver