org.sejda.model.input
Interface PdfSourceOpener<T>

Type Parameters:
T - the type returned by the open action.

public interface PdfSourceOpener<T>

Double Dispatch interface to open a PdfSource.

Author:
Andrea Vacondio
See Also:
double dispatch

Method Summary
 T open(PdfFileSource source)
          Opens the input PdfFileSource.
 T open(PdfStreamSource source)
          Opens the input PdfStreamSource.
 T open(PdfURLSource source)
          Opens the input PdfURLSource.
 

Method Detail

open

T open(PdfURLSource source)
       throws TaskIOException
Opens the input PdfURLSource.

Parameters:
source -
Returns:
generic result of the open action.
Throws:
TaskIOException - if an error occurs opening the source

open

T open(PdfFileSource source)
       throws TaskIOException
Opens the input PdfFileSource.

Parameters:
source -
Returns:
generic result of the open action.
Throws:
TaskIOException - if an error occurs opening the source

open

T open(PdfStreamSource source)
       throws TaskIOException
Opens the input PdfStreamSource.

Parameters:
source -
Returns:
generic result of the open action.
Throws:
TaskIOException - if an error occurs opening the source


Copyright © 2013. All Rights Reserved.