de.maas.afp2web
Class A2WDefaultDocumentHandler

java.lang.Object
  extended byde.maas.afp2web.A2WDefaultDocumentHandler
All Implemented Interfaces:
A2WDocumentHandler

public class A2WDefaultDocumentHandler
extends java.lang.Object
implements A2WDocumentHandler

AFP2web SDK's default document handler. Stores passed document buffer on file and write down the indexes


Constructor Summary
A2WDefaultDocumentHandler()
           
 
Method Summary
 int handle(java.io.ByteArrayOutputStream baosOutputStreamPar, java.util.LinkedList lstDocumentIndexPar)
           Callback to handle document archiving with default definition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

A2WDefaultDocumentHandler

public A2WDefaultDocumentHandler()
Method Detail

handle

public int handle(java.io.ByteArrayOutputStream baosOutputStreamPar,
                  java.util.LinkedList lstDocumentIndexPar)

Callback to handle document archiving with default definition

Specified by:
handle in interface A2WDocumentHandler
Parameters:
baosOutputStreamPar - Stream (java.io.ByteArrayOutputStream) to receive output document buffer
lstDocumentIndexPar - Linked list (java.util.LinkedList) of indexes (de.maas.afp2web.A2WIndex) to receive output document indexes

Returns:
  0 on Success
 <0 on Error