net.sf.jomic.comic
Class ComicToConvert
java.lang.Object
net.sf.jomic.comic.ComicToConvert
- All Implemented Interfaces:
- Comparable
public class ComicToConvert
- extends Object
- implements Comparable
Specifies source, target and size of a comic to be converted.
- Author:
- Thomas Aglassinger
|
Constructor Summary |
ComicToConvert(File sourceDir,
File targetDir,
String relativeComicPath,
String targetSuffix)
Create a new comic to be converted from source directory sourceDir to the
target directory targetDir with the comic file being located in relativeComicPath
relative to these directories. |
ComicToConvert
public ComicToConvert(File sourceDir,
File targetDir,
String relativeComicPath,
String targetSuffix)
- Create a new comic to be converted from source directory
sourceDir to the
target directory targetDir with the comic file being located in relativeComicPath
relative to these directories.
- Parameters:
sourceDir - the directory relative to which the original comic is locatedtargetDir - the target dir relative to which the converted comic should end uprelativeComicPath - the relative path of the comic in sourceDir and targetDirtargetSuffix - the new suffix of the target comic ("cbz" or "pdf")
getFileSize
public long getFileSize()
getSourceComicFile
public File getSourceComicFile()
getTargetComicFile
public File getTargetComicFile()
compareTo
public int compareTo(Object other)
- Specified by:
compareTo in interface Comparable
equals
public boolean equals(Object other)
- Does
other result in the same target comic?
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object