public class ExtensionDescriptorBuilder extends Object
Constructor and Description |
---|
ExtensionDescriptorBuilder() |
Modifier and Type | Method and Description |
---|---|
ExtensionDescriptor |
build(File extensionJar)
Extracts the extension descriptor (if any) from the specified JAR file.
|
ExtensionDescriptor |
build(InputStream is) |
String |
getExtensionDescriptorLocation() |
public String getExtensionDescriptorLocation()
public ExtensionDescriptor build(File extensionJar) throws IOException
extensionJar
- The JAR file or directory to extract the descriptor from, must not be null
.null
if no descriptor was found.IOException
- If the descriptor is present but could not be parsed.public ExtensionDescriptor build(InputStream is) throws IOException
IOException
Copyright © 2001–2018 The Apache Software Foundation. All rights reserved.