aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/area/PageViewport.java
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2001-11-12 13:10:12 +0000
committerKeiron Liddle <keiron@apache.org>2001-11-12 13:10:12 +0000
commit364a97a6e14a63a4df36b64d492a26ea59cfa173 (patch)
tree942ed7e3c5f0d0b43a0c6856ea6b548ce130a7fc /src/org/apache/fop/area/PageViewport.java
parent290c33e88a2fbc430d52e3754813e6519193982c (diff)
downloadxmlgraphics-fop-364a97a6e14a63a4df36b64d492a26ea59cfa173.tar.gz
xmlgraphics-fop-364a97a6e14a63a4df36b64d492a26ea59cfa173.zip
some changes for out of order rendering and rendering to a renderer
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194565 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/area/PageViewport.java')
-rw-r--r--src/org/apache/fop/area/PageViewport.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/org/apache/fop/area/PageViewport.java b/src/org/apache/fop/area/PageViewport.java
index b31ce3030..3fdab2b60 100644
--- a/src/org/apache/fop/area/PageViewport.java
+++ b/src/org/apache/fop/area/PageViewport.java
@@ -54,4 +54,13 @@ public class PageViewport {
public void loadPage(ObjectInputStream in) throws Exception {
page = (Page) in.readObject();
}
+
+ /**
+ * Clear the page contents to save memory.
+ * THis objects is kept for the life of the area tree since
+ * it holds id information and is used as a key.
+ */
+ public void clear() {
+ page = null;
+ }
}