Class SimpleArtifactRepositoryIO


  • public class SimpleArtifactRepositoryIO
    extends java.lang.Object
    This class reads and writes artifact repository metadata (e.g. table of contents files); This class is not used for reading or writing the actual artifacts.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.equinox.p2.repository.artifact.IArtifactRepository read​(java.net.URL location, java.io.InputStream input, org.eclipse.core.runtime.IProgressMonitor monitor)
      Reads the artifact repository from the given stream, and returns the contained array of abstract artifact repositories.
      void write​(org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository repository, java.io.OutputStream output)
      Writes the given artifact repository to the stream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleArtifactRepositoryIO

        public SimpleArtifactRepositoryIO()
    • Method Detail

      • write

        public void write​(org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository repository,
                          java.io.OutputStream output)
        Writes the given artifact repository to the stream. This method performs buffering, and closes the stream when finished.
      • read

        public org.eclipse.equinox.p2.repository.artifact.IArtifactRepository read​(java.net.URL location,
                                                                                   java.io.InputStream input,
                                                                                   org.eclipse.core.runtime.IProgressMonitor monitor)
                                                                            throws org.eclipse.equinox.p2.core.ProvisionException
        Reads the artifact repository from the given stream, and returns the contained array of abstract artifact repositories. This method performs buffering, and closes the stream when finished.
        Throws:
        org.eclipse.equinox.p2.core.ProvisionException