List of usage examples for org.apache.commons.lang3.tuple Triple toString
@Override
public String toString()
Returns a String representation of this triple using the format ($left,$middle,$right) .
From source file:rapture.plugin.app.JarBasedSandboxLoader.java
@Override public void loadSandboxFromEntries(String root, String variant, PluginSandbox sandbox) throws Exception { String[] files = getResourceFiles(root, variant); for (String f : files) { boolean isVariant = false; String path = "/" + f; System.out.println("Path is " + path); // remove PLUGIN/ f = f.substring(7);//www .j ava 2s. c om if (f.startsWith(PluginSandbox.CONTENT)) { // remove content/ from filename f = f.substring(PluginSandbox.CONTENT.length()); } else if (f.startsWith(variant + "/")) { // remove <variant>/ from filename f = f.substring(variant.length() + 1); isVariant = true; } System.out.println("File is " + f); Triple<String, String, Scheme> trip = PluginSandboxItem.extractScheme(f); System.out.println("Triple is " + trip.toString()); // Triple is (/curtisweb/,null,blob) RaptureURI uri = RaptureURI.createFromFullPathWithAttribute(trip.getLeft(), trip.getMiddle(), trip.getRight()); System.out.println("URI is " + uri.toString()); sandbox.makeItemFromInternalEntry(uri, SelfInstaller.class.getResourceAsStream(path), isVariant ? variant : null); } }