diff options
author | Adrian Cumiskey <acumiskey@apache.org> | 2008-07-21 11:36:49 +0000 |
---|---|---|
committer | Adrian Cumiskey <acumiskey@apache.org> | 2008-07-21 11:36:49 +0000 |
commit | 5da52b2740ceb92ae178aa37cbce535b00dc0641 (patch) | |
tree | ac416b16d89b83ca1bf041d49ed8e2f23a2fec17 /src/java/org/apache/fop/render/afp/modca/AbstractPageObject.java | |
parent | c442df1c208fd7eeb17a3bc1eb1aad750d9be333 (diff) | |
download | xmlgraphics-fop-5da52b2740ceb92ae178aa37cbce535b00dc0641.tar.gz xmlgraphics-fop-5da52b2740ceb92ae178aa37cbce535b00dc0641.zip |
* Fixed bug in cache where object is not able to use IOB mechanism.
* Added PNG unsupported (but now recognised) mimetype to MO:DCA Registry.
* Added useful toString() to AbstractNamedDataObject.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@678394 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/afp/modca/AbstractPageObject.java')
-rw-r--r-- | src/java/org/apache/fop/render/afp/modca/AbstractPageObject.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/render/afp/modca/AbstractPageObject.java b/src/java/org/apache/fop/render/afp/modca/AbstractPageObject.java index d3b4d10a9..8e6314adb 100644 --- a/src/java/org/apache/fop/render/afp/modca/AbstractPageObject.java +++ b/src/java/org/apache/fop/render/afp/modca/AbstractPageObject.java @@ -362,9 +362,9 @@ public abstract class AbstractPageObject extends AbstractNamedAFPObject { if (obj instanceof Writable) { Writable writableObject = (Writable)obj; writableObject.write(os); - } else if (obj instanceof ResourceInfo) { - ResourceInfo resourceInfo = (ResourceInfo)obj; - byte[] data = cache.get(resourceInfo); + } else if (obj instanceof DataObjectCache.Record) { + DataObjectCache.Record record = (DataObjectCache.Record)obj; + byte[] data = cache.retrieve(record); os.write(data); } } |