From: Wolfgang M. M. <wol...@us...> - 2004-08-12 16:07:42
|
Update of /cvsroot/exist/eXist-1.0/samples/org/exist/examples/xmldb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11583/samples/org/exist/examples/xmldb Modified Files: Retrieve.java Log Message: Added getContentLength() method to XMLDB resource implementations. Index: Retrieve.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/samples/org/exist/examples/xmldb/Retrieve.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Retrieve.java 9 Feb 2004 08:40:11 -0000 1.8 --- Retrieve.java 12 Aug 2004 16:07:18 -0000 1.9 *************** *** 4,7 **** --- 4,8 ---- import org.exist.storage.serializers.EXistOutputKeys; + import org.exist.xmldb.EXistResource; import org.xmldb.api.DatabaseManager; import org.xmldb.api.base.Collection; *************** *** 49,54 **** if(res == null) System.out.println("document not found!"); ! else System.out.println(res.getContent()); } } --- 50,57 ---- if(res == null) System.out.println("document not found!"); ! else { System.out.println(res.getContent()); + System.out.println("Size: " + ((EXistResource)res).getContentLength()); + } } } |