net.sf.jomic.comic
Class ComicToConvert
java.lang.Object
net.sf.jomic.comic.ComicToConvert
- All Implemented Interfaces:
- java.lang.Comparable
public class ComicToConvert
- extends java.lang.Object
- implements java.lang.Comparable
Specifies source, target and size of a comic to be converted.
- Author:
- Thomas Aglassinger
Constructor Summary |
ComicToConvert(java.io.File sourceDir,
java.io.File targetDir,
java.lang.String relativeComicPath,
java.lang.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. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ComicToConvert
public ComicToConvert(java.io.File sourceDir,
java.io.File targetDir,
java.lang.String relativeComicPath,
java.lang.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 java.io.File getSourceComicFile()
getTargetComicFile
public java.io.File getTargetComicFile()
compareTo
public int compareTo(java.lang.Object other)
- Specified by:
compareTo
in interface java.lang.Comparable
equals
public boolean equals(java.lang.Object other)
- Does
other
result in the same target comic?
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object