Package org.eclipse.tycho.p2maven.io
Class SimpleArtifactRepositoryIO
java.lang.Object
org.eclipse.tycho.p2maven.io.SimpleArtifactRepositoryIO
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.equinox.p2.repository.artifact.IArtifactRepositoryread(URL location, InputStream input) Reads the artifact repository from the given stream, and returns the contained array of abstract artifact repositories.voidwrite(org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository repository, OutputStream output) Writes the given artifact repository to the stream.
-
Constructor Details
-
SimpleArtifactRepositoryIO
public SimpleArtifactRepositoryIO()
-
-
Method Details
-
write
public void write(org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository repository, 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(URL location, InputStream input) 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
-