Interface IRepositoryContentProvider

All Known Implementing Classes:
R5RepoContentProvider

public interface IRepositoryContentProvider
  • Method Summary

    Modifier and Type
    Method
    Description
    Check the stream for compatibility with this provider.
    void
    generateIndex(Set<File> files, OutputStream output, String repoName, URI rootUri, boolean pretty, aQute.bnd.service.Registry registry, org.osgi.service.log.LogService log)
    Generate a new repository index to a stream.
    getDefaultIndexName(boolean pretty)
    Get the default name for an index file supported by this provider; however the actual index file may take a different name if it is overridden by the user or build settings.
    Get the name of this provider (keep it short!).
    void
    parseIndex(InputStream stream, URI baseUri, IRepositoryIndexProcessor processor, org.osgi.service.log.LogService log)
    Parse the index provided via the input stream.
    boolean
    Return whether the content provider supports index generation.
  • Method Details

    • getName

      String getName()
      Get the name of this provider (keep it short!).
    • parseIndex

      void parseIndex(InputStream stream, URI baseUri, IRepositoryIndexProcessor processor, org.osgi.service.log.LogService log) throws Exception
      Parse the index provided via the input stream.
      Parameters:
      stream - The stream that provides the index data.
      baseUri -
      processor -
      Throws:
      Exception
    • checkStream

      CheckResult checkStream(String name, InputStream stream) throws IOException

      Check the stream for compatibility with this provider.