diff options
author | Peter Hancock <phancock@apache.org> | 2011-05-17 11:07:06 +0000 |
---|---|---|
committer | Peter Hancock <phancock@apache.org> | 2011-05-17 11:07:06 +0000 |
commit | 98264493c4bf2806bb710586b2c4726369080245 (patch) | |
tree | 8968533241acf7aa290f0af53d270ccf9d6fdbe7 /src/java/org/apache/fop/afp/apps/FontPatternExtractor.java | |
parent | 418ed80ccbe885fe2e52cafd71daee26f203addc (diff) | |
download | xmlgraphics-fop-98264493c4bf2806bb710586b2c4726369080245.tar.gz xmlgraphics-fop-98264493c4bf2806bb710586b2c4726369080245.zip |
Fixed io exception in MODCAParser caused by the improper use of mark() and reset()
on the MODCA data input stream. See bugzilla 50909.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1104135 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/afp/apps/FontPatternExtractor.java')
-rw-r--r-- | src/java/org/apache/fop/afp/apps/FontPatternExtractor.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/afp/apps/FontPatternExtractor.java b/src/java/org/apache/fop/afp/apps/FontPatternExtractor.java index 0adffcd8b..7a2b8ed36 100644 --- a/src/java/org/apache/fop/afp/apps/FontPatternExtractor.java +++ b/src/java/org/apache/fop/afp/apps/FontPatternExtractor.java @@ -55,9 +55,10 @@ public class FontPatternExtractor { UnparsedStructuredField strucField; while ((strucField = parser.readNextStructuredField()) != null) { if (strucField.getSfTypeID() == 0xD3EE89) { + byte[] sfData = strucField.getData(); println(strucField.toString()); - HexDump.dump(strucField.getData(), 0, printStream, 0); - baout.write(strucField.getData()); + HexDump.dump(sfData, 0, printStream, 0); + baout.write(sfData); } } |