com.jmw.tzap.savers
Class SizeModifiedOnlySaver
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SizeModifiedOnlySaver
public SizeModifiedOnlySaver()
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