at.gv.egiz.pdfas.impl.api.commons
Class DataSinkAdapter

java.lang.Object
  extended byat.gv.egiz.pdfas.impl.api.commons.DataSinkAdapter
All Implemented Interfaces:
DataSink

public class DataSinkAdapter
extends Object
implements DataSink

Adapter that converts an API DataSink to a framework DataSink.

Author:
wprinz

Field Summary
protected  DataSink apiDataSink
          The API DataSink to be adapted to a framework DataSink.
 
Constructor Summary
DataSinkAdapter(DataSink apiDataSink)
          Constructor.
 
Method Summary
 OutputStream createOutputStream(String mimeType)
           
 OutputStream createOutputStream(String mimeType, String characterEncoding)
           
 String getCharacterEncoding()
           
 String getMimeType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

apiDataSink

protected DataSink apiDataSink
The API DataSink to be adapted to a framework DataSink.

Constructor Detail

DataSinkAdapter

public DataSinkAdapter(DataSink apiDataSink)
Constructor.

Parameters:
apiDataSink - The API DataSink to be adapted to a framework DataSink.
Method Detail

createOutputStream

public OutputStream createOutputStream(String mimeType)
Specified by:
createOutputStream in interface DataSink
See Also:
DataSink.createOutputStream(java.lang.String)

createOutputStream

public OutputStream createOutputStream(String mimeType,
                                       String characterEncoding)
Specified by:
createOutputStream in interface DataSink
See Also:
DataSink.createOutputStream(java.lang.String, java.lang.String)

getCharacterEncoding

public String getCharacterEncoding()
Specified by:
getCharacterEncoding in interface DataSink
See Also:
DataSink.getCharacterEncoding()

getMimeType

public String getMimeType()
Specified by:
getMimeType in interface DataSink
See Also:
DataSink.getMimeType()


Copyright © 2006-2010. All Rights Reserved.