public class FileBundleVersionInfo extends BundleVersionInfo<File>
BND_LAST_MODIFIED, BND_LAST_MODIFIED_MISSING, SNAPSHOT_MARKER| Constructor and Description |
|---|
FileBundleVersionInfo(File bundle) |
| Modifier and Type | Method and Description |
|---|---|
long |
getBundleLastModified()
Return the bundle last modification time, based on the BND_LAST_MODIFIED
manifest header, if available.
|
String |
getBundleSymbolicName()
Return the bundle symbolic name, null if not available
|
File |
getSource()
Return the source of information: underlying File or Bundle
|
org.osgi.framework.Version |
getVersion()
Return the bundle version, null if not available
|
boolean |
isBundle()
True if the provided data is a valid bundle
|
boolean |
isSnapshot()
True if the bundle version indicates a snapshot
|
String |
toString() |
compareTopublic FileBundleVersionInfo(File bundle) throws IOException
IOExceptionpublic boolean isBundle()
BundleVersionInfoisBundle in class BundleVersionInfo<File>public long getBundleLastModified()
BundleVersionInfogetBundleLastModified in class BundleVersionInfo<File>public String getBundleSymbolicName()
BundleVersionInfogetBundleSymbolicName in class BundleVersionInfo<File>public File getSource()
BundleVersionInfogetSource in class BundleVersionInfo<File>public org.osgi.framework.Version getVersion()
BundleVersionInfogetVersion in class BundleVersionInfo<File>public boolean isSnapshot()
BundleVersionInfoisSnapshot in class BundleVersionInfo<File>Copyright © 2014 The Apache Software Foundation. All rights reserved.