Khaled Abdelmohsen | 7c56df6 | 2019-10-31 16:59:43 +0000 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | package com.android.server.integrity.parser; |
| 18 | |
Song Pan | 75147d5 | 2019-11-19 00:57:46 +0000 | [diff] [blame] | 19 | import android.content.integrity.Rule; |
Khaled Abdelmohsen | 7c56df6 | 2019-10-31 16:59:43 +0000 | [diff] [blame] | 20 | |
| 21 | import java.io.InputStream; |
Khaled Abdelmohsen | 216109e | 2019-11-04 17:49:18 +0000 | [diff] [blame] | 22 | import java.util.List; |
Khaled Abdelmohsen | 7c56df6 | 2019-10-31 16:59:43 +0000 | [diff] [blame] | 23 | |
| 24 | /** A helper class to parse rules into the {@link Rule} model from Binary representation. */ |
| 25 | public class RuleBinaryParser implements RuleParser { |
| 26 | |
| 27 | @Override |
Khaled Abdelmohsen | 216109e | 2019-11-04 17:49:18 +0000 | [diff] [blame] | 28 | public List<Rule> parse(String ruleText) { |
Khaled Abdelmohsen | 7c56df6 | 2019-10-31 16:59:43 +0000 | [diff] [blame] | 29 | // TODO: Implement binary text parser. |
| 30 | return null; |
| 31 | } |
| 32 | |
| 33 | @Override |
Khaled Abdelmohsen | 216109e | 2019-11-04 17:49:18 +0000 | [diff] [blame] | 34 | public List<Rule> parse(InputStream inputStream) { |
Khaled Abdelmohsen | 7c56df6 | 2019-10-31 16:59:43 +0000 | [diff] [blame] | 35 | // TODO: Implement stream parser. |
| 36 | return null; |
| 37 | } |
| 38 | } |