Examples of lastMetaString()


Examples of freenet.keys.FreenetURI.lastMetaString()

        if(metadata.countDocuments() == 1 && metadata.getDocument("") != null && metadata.getDocument("").isSimpleManifest()) {
          Logger.error(this, "Manifest is called \"\" for "+this, new Exception("error"));
          name = "";
        } else if(metaStrings.isEmpty()) {
          FreenetURI u = uri;
          String last = u.lastMetaString();
          if(last == null || !last.equals(""))
            u = u.addMetaStrings(new String[] { "" });
          else
            u = null;
          throw new FetchException(FetchExceptionMode.NOT_ENOUGH_PATH_COMPONENTS, -1, false, null, u);
View Full Code Here

Examples of freenet.keys.FreenetURI.lastMetaString()

            if (name.endsWith("/")) {
              name = name.substring(0, name.length() - 1);
            }
            try {
              uri = new FreenetURI(name);
              name = uri.lastMetaString();
              if (name == null) {
                name = uri.getDocName();
              }
              if (name == null) {
                name = link.substring(0, Math.min(9, link.length()));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.