+public abstract class TransactionListParser {
+ public static TransactionListParser forApiVersion(API apiVersion, InputStream input)
+ throws IOException {
+ switch (apiVersion) {
+ case v1_14:
+ return new net.ktnx.mobileledger.json.v1_14.TransactionListParser(input);
+ case v1_15:
+ return new net.ktnx.mobileledger.json.v1_15.TransactionListParser(input);
+ case v1_19_1:
+ return new net.ktnx.mobileledger.json.v1_19_1.TransactionListParser(input);
+ case v1_23:
+ return new net.ktnx.mobileledger.json.v1_23.TransactionListParser(input);
+ default:
+ throw new RuntimeException("Unsupported version " + apiVersion.toString());
+ }