Class P2RepositoryReader
- java.lang.Object
-
- org.palladiosimulator.dependencytool.P2RepositoryReader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class P2RepositoryReader extends Object implements Closeable
Parser for P2Repositories.
-
-
Constructor Summary
Constructors Constructor Description P2RepositoryReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Set<String>
readProvidedBundles(String path)
Returns all bundles from the update site.Set<String>
readProvidedFeatures(String path)
Returns all features from the update site.
-
-
-
Method Detail
-
readProvidedFeatures
public Set<String> readProvidedFeatures(String path) throws IOException
Returns all features from the update site.- Parameters:
path
- Path to the repository that should be read.- Returns:
- A set of names of features provided by this repository.
- Throws:
IOException
-
readProvidedBundles
public Set<String> readProvidedBundles(String path) throws IOException
Returns all bundles from the update site.- Parameters:
path
- Path to the repository that should be read.- Returns:
- A set of names of bundles provided by this repository.
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-