net.sf.jomic.comic
Class ComicToConvert

java.lang.Object
  extended by 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.
 
Method Summary
 int compareTo(java.lang.Object other)
           
 boolean equals(java.lang.Object other)
          Does other result in the same target comic?
 long getFileSize()
           
 java.io.File getSourceComicFile()
           
 java.io.File getTargetComicFile()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 located
targetDir - the target dir relative to which the converted comic should end up
relativeComicPath - the relative path of the comic in sourceDir and targetDir
targetSuffix - the new suffix of the target comic ("cbz" or "pdf")
Method Detail

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