de.maas.afp2web
Class A2WDefaultDocumentReader

java.lang.Object
  extended byde.maas.afp2web.A2WDefaultDocumentReader
All Implemented Interfaces:
A2WDocumentReader

public class A2WDefaultDocumentReader
extends java.lang.Object
implements A2WDocumentReader

AFP2web SDK's default document reader. Read/retrieve document data based on given ID


Constructor Summary
A2WDefaultDocumentReader()
           
 
Method Summary
 A2WDocumentObject read(java.lang.String sDocumentIDPar)
           Call back to read/retrieve document based on given document ID with custom definition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

A2WDefaultDocumentReader

public A2WDefaultDocumentReader()
Method Detail

read

public A2WDocumentObject read(java.lang.String sDocumentIDPar)

Call back to read/retrieve document based on given document ID with custom definition

Specified by:
read in interface A2WDocumentReader
Parameters:
sDocumentIDPar - String ( java.lang.String ) based on which document will be read/retrieved
Considers given document id as filename and opens that file as input stream.

Returns:
  A2WDocumentObject on Success with document details
  "null" on Error