Validates that the remaining data matches the parsed length.
()
| 144 | * Validates that the remaining data matches the parsed length. |
| 145 | */ |
| 146 | public void parseFullLength() { |
| 147 | int len = parseLength(); |
| 148 | if (source.length - pos != len) { |
| 149 | throw new IllegalArgumentException(sm.getString("asn1Parser.lengthInvalid", Integer.valueOf(len), |
| 150 | Integer.valueOf(source.length - pos))); |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | |
| 155 | /** |
no test coverage detected