aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/afp/AFPStreamer.java
diff options
context:
space:
mode:
authorAdrian Cumiskey <acumiskey@apache.org>2008-11-20 17:52:34 +0000
committerAdrian Cumiskey <acumiskey@apache.org>2008-11-20 17:52:34 +0000
commit005e36da82c0bb31c6f906d4052dd6f00d810798 (patch)
treed3ddb74c146114b6c8991054aa68057a573c9ba2 /src/java/org/apache/fop/afp/AFPStreamer.java
parentb4c6724ac10059e980fb1aede0ea04dd9a81c3b2 (diff)
downloadxmlgraphics-fop-005e36da82c0bb31c6f906d4052dd6f00d810798.tar.gz
xmlgraphics-fop-005e36da82c0bb31c6f906d4052dd6f00d810798.zip
Improved plumbing :)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@719307 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/afp/AFPStreamer.java')
-rw-r--r--src/java/org/apache/fop/afp/AFPStreamer.java19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/java/org/apache/fop/afp/AFPStreamer.java b/src/java/org/apache/fop/afp/AFPStreamer.java
index 007259cd4..7e208bb6e 100644
--- a/src/java/org/apache/fop/afp/AFPStreamer.java
+++ b/src/java/org/apache/fop/afp/AFPStreamer.java
@@ -83,19 +83,16 @@ public class AFPStreamer implements Streamable {
/**
* Creates a new DataStream
*
- * @param state the AFP painting state
+ * @param paintingState the AFP painting state
* @return a new {@link DataStream}
+ * @throws IOException thrown if an I/O exception of some sort has occurred
*/
- public DataStream createDataStream(AFPPaintingState state) {
- try {
- this.tempFile = File.createTempFile(AFPDATASTREAM_TEMP_FILE_PREFIX, null);
- this.documentFile = new RandomAccessFile(tempFile, "rw");
- this.documentOutputStream = new BufferedOutputStream(
- new FileOutputStream(documentFile.getFD()));
- this.dataStream = factory.createDataStream(state, documentOutputStream);
- } catch (IOException e) {
- log.error(e.getMessage());
- }
+ public DataStream createDataStream(AFPPaintingState paintingState) throws IOException {
+ this.tempFile = File.createTempFile(AFPDATASTREAM_TEMP_FILE_PREFIX, null);
+ this.documentFile = new RandomAccessFile(tempFile, "rw");
+ this.documentOutputStream = new BufferedOutputStream(
+ new FileOutputStream(documentFile.getFD()));
+ this.dataStream = factory.createDataStream(paintingState, documentOutputStream);
return dataStream;
}