Interface ObjectFileProvider


public interface ObjectFileProvider
An object file format provider.
  • Method Details

    • openObjectFile

      ObjectFile openObjectFile(Path path) throws IOException
      Open an object file on the filesystem for introspection.
      Parameters:
      path - the path to the object file (must not be null)
      Returns:
      the object file handle
      Throws:
      IOException - if the file open failed for some reason
    • getObjectType

      ObjectType getObjectType()
      Get the object file format.
      Returns:
      the object file format
    • findProvider

      static Optional<ObjectFileProvider> findProvider(ObjectType objectType, ClassLoader searchLoader)
      Find a provider for the given object type.
      Parameters:
      objectType - the object file type (must not be null)
      searchLoader - the search class loader (must not be null)
      Returns:
      the provider, if any