|
iRex DR1000 Merger v0.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.andynaz.irex.dr1000.document.Document
it.andynaz.irex.dr1000.document.PdfDocument
public class PdfDocument
Represent a DR1000 PDF file. An object of that kind is associated with a path to a PDF file.
Field Summary | |
---|---|
static String |
DB_DEFAULT_NAME
Name of the default SQLite database file for PDF documents. |
private File |
file
Source PDF file. |
Fields inherited from class it.andynaz.irex.dr1000.document.Document |
---|
db |
Constructor Summary | |
---|---|
PdfDocument(String filePath)
Creates a PDF document. |
|
PdfDocument(String filePath,
File db)
Creates a PDF document. |
Method Summary | |
---|---|
protected String |
getDefaultFileName()
Return the name of the PDF source file, without the extension. |
protected String |
getFileName()
Return the name of the PDF file. |
void |
merge(String outputFile)
Merge the scribbles with the PDF. |
Methods inherited from class it.andynaz.irex.dr1000.document.Document |
---|
format, getScribbleMgr |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DB_DEFAULT_NAME
private File file
Constructor Detail |
---|
public PdfDocument(String filePath)
filePath
- path to the PDF file
IllegalArgumentException
- if filePath
does not represent a
filepublic PdfDocument(String filePath, File db)
filePath
- path to the PDF filedb
- path to the database file
IllegalArgumentException
- if filePath
does not represent a
fileMethod Detail |
---|
protected String getFileName()
getFileName
in class Document
ScribbleMgr
protected String getDefaultFileName()
getDefaultFileName
in class Document
public void merge(String outputFile)
If the file is not found in the database, the program list all the files in the database having at least a scribble, so that user can choose which is the corresponding one. This can happen with a file having a name with all uppercases character, as the Linux operating system of the DR1000 may not recognize them properly.
merge
in class Document
outputFile
- the output file path; if it is null
or empty,
the default one returned by getDefaultFileName()
is used
|
iRex DR1000 Merger v0.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |