at.gv.egiz.pdfas.impl.output
Class ByteArrayDataSink
java.lang.Object
at.gv.egiz.pdfas.impl.output.ByteArrayDataSink
- All Implemented Interfaces:
- DataSink
- public class ByteArrayDataSink
- extends Object
- implements DataSink
- Author:
- wprinz
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mimeType
protected String mimeType
characterEncoding
protected String characterEncoding
baos
protected ByteArrayOutputStream baos
ByteArrayDataSink
public ByteArrayDataSink()
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)
getByteArray
public byte[] getByteArray()
- Returns the byte array.
- Returns:
- Returns the byte array.
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.