com.qoppa.pdf.source
Class URLPDFSource

java.lang.Object
  extended by com.qoppa.pdf.source.URLPDFSource
All Implemented Interfaces:
PDFSource

public class URLPDFSource
extends Object
implements PDFSource

Implementation of the PDFSource interface when the document comes from a URL.

Author:
Qoppa Software

Constructor Summary
URLPDFSource(URL url)
           
 
Method Summary
 boolean equals(PDFSource other)
          Tests if this source is equal to another source.
 PDFContent getContent()
          Returns an object that implements PDFContent, that contains and can deliver the contents of the PDF document.
 String getName()
          Returns the name of the document.
 String getPath()
          Returns the URL path to the PDF document.
 URL getURL()
          Returns the URL where the PDF came from.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLPDFSource

public URLPDFSource(URL url)
             throws PDFException
Throws:
PDFException
Method Detail

equals

public boolean equals(PDFSource other)
Description copied from interface: PDFSource
Tests if this source is equal to another source.

Specified by:
equals in interface PDFSource

getName

public String getName()
Description copied from interface: PDFSource
Returns the name of the document. The name of the document is normally the file name.

Specified by:
getName in interface PDFSource

getPath

public String getPath()
Returns the URL path to the PDF document.

Specified by:
getPath in interface PDFSource

getURL

public URL getURL()
Returns the URL where the PDF came from.

Returns:
The URL location of the PDF document.

getContent

public PDFContent getContent()
                      throws IOException
Description copied from interface: PDFSource
Returns an object that implements PDFContent, that contains and can deliver the contents of the PDF document.

Specified by:
getContent in interface PDFSource
Returns:
Returns an object that implements the PDFContent interface.
Throws:
IOException