1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package io.earcam.instrumental.module.osgi.parser;
20
21 import java.io.InputStream;
22
23 import io.earcam.instrumental.module.osgi.BundleInfoBuilder;
24
25 public final class BundleInfoParser {
26
27 private BundleInfoParser()
28 {}
29
30
31 public static BundleInfoBuilder parse(String manifest)
32 {
33 ManifestParser parser = Parsing.failFastParserFor(manifest);
34 return AntlrParser.parse(parser);
35 }
36
37
38 public static BundleInfoBuilder parse(InputStream manifest)
39 {
40 ManifestParser parser = Parsing.failFastParserFor(manifest);
41 return AntlrParser.parse(parser);
42 }
43 }