org.pdfsam.console.business.dto
Class PdfFile
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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
-
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