org.pdfsam.console.business.dto
Class PdfFile

java.lang.Object
  extended by org.pdfsam.console.business.dto.PdfFile
All Implemented Interfaces:
java.io.Serializable

public class PdfFile
extends java.lang.Object
implements java.io.Serializable

Model of a password protected pdf file

Author:
Andrea Vacondio
See Also:
Serialized Form

Constructor Summary
PdfFile()
           
PdfFile(java.io.File file, java.lang.String password)
           
PdfFile(java.lang.String filePath, java.lang.String password)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.io.File getFile()
           
 java.lang.String getPassword()
           
 byte[] getPasswordBytes()
           
 int hashCode()
           
 void setFile(java.io.File file)
           
 void setPassword(java.lang.String password)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PdfFile

public PdfFile()

PdfFile

public PdfFile(java.io.File file,
               java.lang.String password)
Parameters:
file -
password -

PdfFile

public PdfFile(java.lang.String filePath,
               java.lang.String password)
Parameters:
filePath -
password -
Method Detail

getFile

public java.io.File getFile()
Returns:
the file

setFile

public void setFile(java.io.File file)
Parameters:
file - the file to set

getPassword

public java.lang.String getPassword()
Returns:
the password

getPasswordBytes

public byte[] getPasswordBytes()
Returns:
the password in bytes or null

setPassword

public void setPassword(java.lang.String password)
Parameters:
password - the password to set

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object