blob: 111b95a05d246412dff667ee570b9d8b0e194275 [file] [log] [blame]
Khaled Abdelmohsen7c56df62019-10-31 16:59:43 +00001/*
2 * Copyright (C) 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.android.server.integrity.parser;
18
Song Pan75147d52019-11-19 00:57:46 +000019import android.content.integrity.Rule;
Khaled Abdelmohsen7c56df62019-10-31 16:59:43 +000020
21import java.io.InputStream;
Khaled Abdelmohsen216109e2019-11-04 17:49:18 +000022import java.util.List;
Khaled Abdelmohsen7c56df62019-10-31 16:59:43 +000023
24/** A helper class to parse rules into the {@link Rule} model from Binary representation. */
25public class RuleBinaryParser implements RuleParser {
26
27 @Override
Khaled Abdelmohsen216109e2019-11-04 17:49:18 +000028 public List<Rule> parse(String ruleText) {
Khaled Abdelmohsen7c56df62019-10-31 16:59:43 +000029 // TODO: Implement binary text parser.
30 return null;
31 }
32
33 @Override
Khaled Abdelmohsen216109e2019-11-04 17:49:18 +000034 public List<Rule> parse(InputStream inputStream) {
Khaled Abdelmohsen7c56df62019-10-31 16:59:43 +000035 // TODO: Implement stream parser.
36 return null;
37 }
38}