@Override public String toString() { return wrapped.toString(); }
@Override public String toString() { return super.toString() + '[' + nestedDirName + ']'; }
@Override public String toString() { return wrapped.toString(); }
@Override public String toString() { return wrapped.toString(); }
@Override public String toString() { return wrapped.toString(); }
@Override public String toString() { return wrapped.toString(); }
@Override public String toString() { return wrapped.toString(); }
/** Get the manifest name from the resources. */ String getManifestName() throws BundleException { URL manifestUrl = getEntry(JarFile.MANIFEST_NAME); if (null != manifestUrl) { try { Manifest manifest = new Manifest(manifestUrl.openStream()); String headerValue = manifest.getMainAttributes().getValue(Constants.BUNDLE_SYMBOLICNAME); if (null == headerValue) { throw new BundleException(String.format("Symbolic values not found in '%s'.", manifestUrl), BundleException.MANIFEST_ERROR); } ManifestElement[] elements = ManifestElement.parseHeader(Constants.BUNDLE_SYMBOLICNAME, headerValue); if (null == elements) { throw new BundleException(String.format("Symbolic name not found '%s'. Value is '%s'.", manifestUrl, headerValue), BundleException.MANIFEST_ERROR); } //The parser already checked that at least one value exists return elements[0].getValueComponents()[0]; } catch (IOException e) { throw new BundleException(String.format("Failed to parse Manifest '%s' in '%s'.", manifestUrl, bundleFile.toString()), BundleException.MANIFEST_ERROR, e); } } throw new BundleException(String.format("'%s' in '%s' not found. Tried also fat JAR location '%s'.", JarFile.MANIFEST_NAME, bundleFile.toString(), fatJarResourcePath), BundleException.MANIFEST_ERROR); }
throw new SignatureException(NLS.bind(SignedContentMessages.SF_File_Parsing_Error, new String[] {bf.toString()}));
throw new SignatureException(NLS.bind(SignedContentMessages.SF_File_Parsing_Error, new String[] {bf.toString()}));
throw new SignatureException(NLS.bind(SignedContentMessages.SF_File_Parsing_Error, new String[] {bf.toString()}));
throw new SignatureException(NLS.bind(SignedContentMessages.SF_File_Parsing_Error, new String[] {bf.toString()}));
throw new SignatureException(NLS.bind(SignedContentMessages.SF_File_Parsing_Error, new String[] {bf.toString()}));
throw new SignatureException(NLS.bind(SignedContentMessages.SF_File_Parsing_Error, new String[] {bf.toString()}));