[Yanel-commits] rev 22703 -
public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources
michi at wyona.com
michi at wyona.com
Thu Feb 15 23:48:19 CET 2007
Author: michi
Date: 2007-02-15 23:48:17 +0100 (Thu, 15 Feb 2007)
New Revision: 22703
Modified:
public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources/XMLResource.java
Log:
getSize fixed and note added
Modified: public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources/XMLResource.java
===================================================================
--- public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources/XMLResource.java 2007-02-15 22:38:45 UTC (rev 22702)
+++ public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources/XMLResource.java 2007-02-15 22:48:17 UTC (rev 22703)
@@ -382,6 +382,8 @@
* Get size of generated page
*/
public long getSize() throws Exception {
+ // TODO: If the XML is being transformed then the size will not be the same as the size of the node!
+/*
Node node = getRealm().getRepository().getNode(getPath());
long size;
if (node.isResource()) {
@@ -390,6 +392,8 @@
size = 0;
}
return size;
+*/
+ return -1;
}
/**
More information about the Yanel-commits
mailing list