aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/afp/apps/FontPatternExtractor.java
diff options
context:
space:
mode:
authorPeter Hancock <phancock@apache.org>2011-05-17 11:07:06 +0000
committerPeter Hancock <phancock@apache.org>2011-05-17 11:07:06 +0000
commit98264493c4bf2806bb710586b2c4726369080245 (patch)
tree8968533241acf7aa290f0af53d270ccf9d6fdbe7 /src/java/org/apache/fop/afp/apps/FontPatternExtractor.java
parent418ed80ccbe885fe2e52cafd71daee26f203addc (diff)
downloadxmlgraphics-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.java5
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);
}
}