Class CFBundle

All Implemented Interfaces:
AutoCloseable

public class CFBundle
extends CFType
  • Constructor Details

    • CFBundle

      protected CFBundle()
  • Method Details

    • getMainBundle

      public static CFBundle getMainBundle()
    • getBundle

      public static CFBundle getBundle​(String bundleID)
    • getAllBundles

      public static List<CFBundle> getAllBundles()
    • getClassTypeID

      public static long getClassTypeID()
    • create

      public static CFBundle create​(CFAllocator allocator, CFURL bundleURL)
    • createBundlesFromDirectory

      public static List<CFBundle> createBundlesFromDirectory​(CFAllocator allocator, CFURL directoryURL, String bundleType)
    • getBundleURL

      public CFURL getBundleURL()
    • getValueForInfoDictionaryKey

      public CFType getValueForInfoDictionaryKey​(String key)
    • getInfoDictionary

      public CFDictionary getInfoDictionary()
    • getLocalInfoDictionary

      public CFDictionary getLocalInfoDictionary()
    • getPackageInfo

      public void getPackageInfo​(IntPtr packageType, IntPtr packageCreator)
    • getIdentifier

      public String getIdentifier()
    • getVersionNumber

      public int getVersionNumber()
    • getDevelopmentRegion

      public String getDevelopmentRegion()
    • getSupportFilesDirectoryURL

      public CFURL getSupportFilesDirectoryURL()
    • getResourcesDirectoryURL

      public CFURL getResourcesDirectoryURL()
    • getPrivateFrameworksURL

      public CFURL getPrivateFrameworksURL()
    • getSharedFrameworksURL

      public CFURL getSharedFrameworksURL()
    • getSharedSupportURL

      public CFURL getSharedSupportURL()
    • getBuiltInPlugInsURL

      public CFURL getBuiltInPlugInsURL()
    • getInfoDictionaryInDirectory

      public static CFDictionary getInfoDictionaryInDirectory​(CFURL bundleURL)
    • getPackageInfoInDirectory

      public static boolean getPackageInfoInDirectory​(CFURL url, IntPtr packageType, IntPtr packageCreator)
    • getResourceURL

      public CFURL getResourceURL​(String resourceName, String resourceType, String subDirName)
    • getResourceURLsOfType

      public CFArray getResourceURLsOfType​(String resourceType, String subDirName)
    • getLocalizedString

      public String getLocalizedString​(String key, String value, String tableName)
    • getResourceURLInDirectory

      public static CFURL getResourceURLInDirectory​(CFURL bundleURL, String resourceName, String resourceType, String subDirName)
    • getResourceURLsOfTypeInDirectory

      public static CFArray getResourceURLsOfTypeInDirectory​(CFURL bundleURL, String resourceType, String subDirName)
    • getBundleLocalizations

      public CFArray getBundleLocalizations()
    • getPreferredLocalizationsFromArray

      public static CFArray getPreferredLocalizationsFromArray​(CFArray locArray)
    • getLocalizationsForPreferences

      public static CFArray getLocalizationsForPreferences​(CFArray locArray, CFArray prefArray)
    • getResourceURLForLocalization

      public CFURL getResourceURLForLocalization​(String resourceName, String resourceType, String subDirName, String localizationName)
    • getResourceURLsOfTypeForLocalization

      public CFArray getResourceURLsOfTypeForLocalization​(String resourceType, String subDirName, String localizationName)
    • getInfoDictionaryForURL

      public static CFDictionary getInfoDictionaryForURL​(CFURL url)
    • getLocalizationsForURL

      public static CFArray getLocalizationsForURL​(CFURL url)
    • getExecutableArchitecturesForURL

      public static CFArray getExecutableArchitecturesForURL​(CFURL url)
    • getExecutableURL

      public CFURL getExecutableURL()
    • getExecutableArchitectures

      public CFArray getExecutableArchitectures()
    • preflightExecutable

      public boolean preflightExecutable​(CFError.CFErrorPtr error)
    • loadExecutableAndReturnError

      public boolean loadExecutableAndReturnError​(CFError.CFErrorPtr error)
    • loadExecutable

      public boolean loadExecutable()
    • isExecutableLoaded

      public boolean isExecutableLoaded()
    • unloadExecutable

      public void unloadExecutable()
    • getFunctionPointerForName

      public VoidPtr getFunctionPointerForName​(String functionName)
    • getFunctionPointersForNames

      public void getFunctionPointersForNames​(CFArray functionNames, VoidPtr.VoidPtrPtr ftbl)
    • getDataPointerForName

      public VoidPtr getDataPointerForName​(String symbolName)
    • getDataPointersForNames

      public void getDataPointersForNames​(CFArray symbolNames, VoidPtr.VoidPtrPtr stbl)
    • getAuxiliaryExecutableURL

      public CFURL getAuxiliaryExecutableURL​(String executableName)
    • getPlugIn

      public CFPlugIn getPlugIn()