it.andynaz.irex.dr1000
Class DR1000PdfDoc

java.lang.Object
  extended by it.andynaz.irex.dr1000.DR1000PdfDoc

public class DR1000PdfDoc
extends Object

Represent a DR1000 PDF file. An object of that kind is associated with a path to a PDF file.

Version:
2013-01-04
Author:
andynaz

Field Summary
private  File filePath
           
private  Map<Integer,Page> pageMap
           
 
Constructor Summary
private DR1000PdfDoc(String file)
           
 
Method Summary
private  void createPageMap()
           
 File getFile()
          Return the PDF file.
 String getFileName()
          Return the name of the PDF file.
static DR1000PdfDoc getInstance(String file)
          Creates a DR1000PdfDoc object.
(package private)  void merge(String outFilePath)
           
(package private)  void report()
          Deprecated. only for debug pourpose, will be removed in the next releases
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filePath

private File filePath

pageMap

private Map<Integer,Page> pageMap
Constructor Detail

DR1000PdfDoc

private DR1000PdfDoc(String file)
Method Detail

getInstance

public static DR1000PdfDoc getInstance(String file)
Creates a DR1000PdfDoc object.

Parameters:
file - path to the PDF file
Returns:
a new DR1000PdfFile object

getFileName

public String getFileName()
Return the name of the PDF file.

Returns:
the name of the PDF file

getFile

public File getFile()
Return the PDF file.

Returns:
the PDF file

merge

void merge(String outFilePath)
     throws Exception
Throws:
Exception

report

void report()
      throws Exception
Deprecated. only for debug pourpose, will be removed in the next releases

Create a report on the PDF document. The report is printed on the System.out.

Throws:
Exception

createPageMap

private void createPageMap()
                    throws Exception
Throws:
Exception


(c) 2013 andynaz - http://andynaz.altervista.org