Parses and validates an expected tag. @param tag the expected tag value
(int tag)
| 132 | * @param tag the expected tag value |
| 133 | */ |
| 134 | public void parseTag(int tag) { |
| 135 | int value = next(); |
| 136 | if (value != tag) { |
| 137 | throw new IllegalArgumentException( |
| 138 | sm.getString("asn1Parser.tagMismatch", Integer.valueOf(tag), Integer.valueOf(value))); |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | |
| 143 | /** |
no test coverage detected