コード例 #1
0
ファイル: FreenetURI.java プロジェクト: saces/foe
 public FreenetURI(FreenetURI uri) {
   //		this.uniqueHashCode = super.hashCode();
   keyType = uri.keyType;
   docName = uri.docName;
   if (uri.metaStr != null) {
     metaStr = new String[uri.metaStr.length];
     System.arraycopy(uri.metaStr, 0, metaStr, 0, metaStr.length);
   } else metaStr = null;
   if (uri.routingKey != null) {
     routingKey = new byte[uri.routingKey.length];
     System.arraycopy(uri.routingKey, 0, routingKey, 0, routingKey.length);
   } else routingKey = null;
   if (uri.cryptoKey != null) {
     cryptoKey = new byte[uri.cryptoKey.length];
     System.arraycopy(uri.cryptoKey, 0, cryptoKey, 0, cryptoKey.length);
   } else cryptoKey = null;
   if (uri.extra != null) {
     extra = new byte[uri.extra.length];
     System.arraycopy(uri.extra, 0, extra, 0, extra.length);
   } else extra = null;
   this.suggestedEdition = uri.suggestedEdition;
   Logger.minor(this, "Copied: " + toString() + " from " + uri.toString(), new Exception("debug"));
 }
コード例 #2
0
ファイル: FreenetURI.java プロジェクト: saces/foe
 /**
  * Throw an InsertException if the argument has any meta-strings. They are not valid for inserts,
  * you must insert a directory to create a directory structure.
  */
 public static void checkInsertURI(FreenetURI uri) throws InsertException {
   uri.checkInsertURI();
 }