aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render/afp/modca/AbstractPageObject.java
diff options
context:
space:
mode:
authorAdrian Cumiskey <acumiskey@apache.org>2008-07-21 11:36:49 +0000
committerAdrian Cumiskey <acumiskey@apache.org>2008-07-21 11:36:49 +0000
commit5da52b2740ceb92ae178aa37cbce535b00dc0641 (patch)
treeac416b16d89b83ca1bf041d49ed8e2f23a2fec17 /src/java/org/apache/fop/render/afp/modca/AbstractPageObject.java
parentc442df1c208fd7eeb17a3bc1eb1aad750d9be333 (diff)
downloadxmlgraphics-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.java6
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);
}
}