r27109 - trunk/freenet/src/freenet/client

[email protected] Mon, 20 Apr 2009 20:04:23 +0000
Newsgroups gmane.network.freenet.cvs
Message-ID <[email protected]>
Author: saces
Date: 2009-04-20 20:04:22 +0000 (Mon, 20 Apr 2009)
New Revision: 27109

Modified:
   trunk/freenet/src/freenet/client/Metadata.java
Log:
add resolve to 'nameInArchive'

Modified: trunk/freenet/src/freenet/client/Metadata.java
===================================================================
--- trunk/freenet/src/freenet/client/Metadata.java	2009-04-20 19:50:55 UTC (rev 27108)
+++ trunk/freenet/src/freenet/client/Metadata.java	2009-04-20 20:04:22 UTC (rev 27109)
@@ -55,6 +55,9 @@
 	// URI at which this Metadata has been/will be inserted.
 	FreenetURI resolvedURI;
 	
+	// Name at which this Metadata has been/will be inside container.
+	String resolvedName;
+	
 	// Actual parsed data
 	
 	// document type
@@ -978,6 +981,10 @@
 	public void resolve(FreenetURI uri) {
 		this.resolvedURI = uri;
 	}
+	
+	public void resolve(String name) {
+		this.resolvedName = name;
+	}
 
 	public Bucket toBucket(BucketFactory bf) throws MetadataUnresolvedException, IOException {
 		byte[] buf = writeToByteArray();
@@ -985,7 +992,7 @@
 	}
 
 	public boolean isResolved() {
-		return resolvedURI != null;
+		return (resolvedURI != null) || (resolvedName != null);
 	}
 
 	public void setArchiveManifest() {