at.gv.egiz.pdfas.impl.output
Class FileBasedDataSink

java.lang.Object
  extended byat.gv.egiz.pdfas.impl.output.FileBasedDataSink
All Implemented Interfaces:
DataSink, FileBased

public class FileBasedDataSink
extends Object
implements DataSink, FileBased

Author:
wprinz

Field Summary
protected  String characterEncoding
           
protected  String mimeType
           
protected  File outputFile
          The output file.
 
Constructor Summary
FileBasedDataSink(File file)
          Creates a file based PdfDataSink.
 
Method Summary
protected  OutputStream createOutputStream()
           
 OutputStream createOutputStream(String mimeType)
           
 OutputStream createOutputStream(String mimeType, String characterEncoding)
           
 String getCharacterEncoding()
           
 File getFile()
          Returns the underlying data file.
 String getMimeType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mimeType

protected String mimeType

characterEncoding

protected String characterEncoding

outputFile

protected File outputFile
The output file.

Constructor Detail

FileBasedDataSink

public FileBasedDataSink(File file)
                  throws IOException
Creates a file based PdfDataSink.

Parameters:
file - The file.
Throws:
IOException - F.e.
Method Detail

getFile

public File getFile()
Description copied from interface: FileBased
Returns the underlying data file.

Specified by:
getFile in interface FileBased
Returns:
Returns the underlying data file.
See Also:
FileBased.getFile()

createOutputStream

protected OutputStream createOutputStream()

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)

getMimeType

public String getMimeType()
Specified by:
getMimeType in interface DataSink
Returns:
the mimeType

getCharacterEncoding

public String getCharacterEncoding()
Specified by:
getCharacterEncoding in interface DataSink
Returns:
the characterEncoding


Copyright © 2006-2010. All Rights Reserved.