Package org.eclipse.osgi.storage
Class SystemBundleFile
java.lang.Object
org.eclipse.osgi.storage.bundlefile.BundleFile
org.eclipse.osgi.storage.SystemBundleFile
- 
Field SummaryFields inherited from class org.eclipse.osgi.storage.bundlefile.BundleFilebasefile
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Closes the BundleFile.booleancontainsDir(String dir) Determines if any BundleEntries exist in the given directory path.Locates a file name in this bundle and returns a BundleEntry objectgetEntryPaths(String path, boolean recurse) Allows to access the entries of the bundle.Returns a File for the bundle entry specified by the path.voidopen()Opens the BundleFiles.Methods inherited from class org.eclipse.osgi.storage.bundlefile.BundleFilecreateResourceURL, createURL, fixTrailingSlash, getBaseFile, getEntryPaths, getResourceURL, toString
- 
Constructor Details- 
SystemBundleFilepublic SystemBundleFile()
 
- 
- 
Method Details- 
getFileDescription copied from class:BundleFileReturns a File for the bundle entry specified by the path. If required the content of the bundle entry is extracted into a file on the file system.- Specified by:
- getFilein class- BundleFile
- Parameters:
- path- The path to the entry to locate a File for.
- nativeCode- true if the path is native code.
- Returns:
- A File object to access the contents of the bundle entry.
 
- 
getEntryDescription copied from class:BundleFileLocates a file name in this bundle and returns a BundleEntry object- Specified by:
- getEntryin class- BundleFile
- Parameters:
- path- path of the entry to locate in the bundle
- Returns:
- BundleEntry object or null if the file name does not exist in the bundle
 
- 
getEntryPathsDescription copied from class:BundleFileAllows to access the entries of the bundle. Since the bundle content is usually a jar, this allows to access the jar contents. GetEntryPaths allows to enumerate the content of "path". If path is a directory, it is equivalent to listing the directory contents. The returned names are either files or directories themselves. If a returned name is a directory, it finishes with a slash. If a returned name is a file, it does not finish with a slash.- Specified by:
- getEntryPathsin class- BundleFile
- Parameters:
- path- path of the entry to locate in the bundle
- recurse- - If- true, provide entries for the files and directories within the directory denoted by- pathplus all sub-directories and files; otherwise, provide only the entries within the immediate directory.
- Returns:
- an Enumeration of Strings that indicate the paths found or null if the path does not exist.
 
- 
closeDescription copied from class:BundleFileCloses the BundleFile.- Specified by:
- closein class- BundleFile
- Throws:
- IOException- if any error occurs.
 
- 
openDescription copied from class:BundleFileOpens the BundleFiles.- Specified by:
- openin class- BundleFile
- Throws:
- IOException- if any error occurs.
 
- 
containsDirDescription copied from class:BundleFileDetermines if any BundleEntries exist in the given directory path.- Specified by:
- containsDirin class- BundleFile
- Parameters:
- dir- The directory path to check existence of.
- Returns:
- true if the BundleFile contains entries under the given directory path; false otherwise.
 
 
-