use of org.apache.sling.maven.projectsupport.bundlelist.v1_0_0.io.xpp3.BundleListXpp3Reader in project sling by apache.
the class DisplayBundleUpdatesMojo method readBundleList.
private BundleList readBundleList(File file) throws IOException, XmlPullParserException {
BundleListXpp3Reader reader = new BundleListXpp3Reader();
FileInputStream fis = new FileInputStream(file);
try {
return reader.read(fis);
} finally {
fis.close();
}
}
use of org.apache.sling.maven.projectsupport.bundlelist.v1_0_0.io.xpp3.BundleListXpp3Reader in project sling by apache.
the class BundleListUtils method readBundleList.
public static BundleList readBundleList(File file) throws IOException, XmlPullParserException {
BundleListXpp3Reader reader = new BundleListXpp3Reader();
FileInputStream fis = new FileInputStream(file);
try {
return reader.read(fis);
} finally {
fis.close();
}
}
use of org.apache.sling.maven.projectsupport.bundlelist.v1_0_0.io.xpp3.BundleListXpp3Reader in project sling by apache.
the class BundleListContentProviderTest method parseBundleList.
@BeforeClass
public static void parseBundleList() throws Exception {
final BundleListXpp3Reader reader = new BundleListXpp3Reader();
final InputStream is = BundleListContentProviderTest.class.getClassLoader().getResourceAsStream(TEST_BUNDLE_LIST);
assertNotNull("Expecting " + TEST_BUNDLE_LIST + " to be found", is);
try {
bundleList = reader.read(is);
} finally {
is.close();
}
}
Aggregations