MCPcopy Create free account
hub / github.com/antlr/codebuff / decodeChecked

Method decodeChecked

output/java_guava/1.4.16/BaseEncoding.java:238–243  ·  view source on GitHub ↗

Decodes the specified character sequence, and returns the resulting byte[]. This is the inverse operation to #encode(byte[]). @throws DecodingException if the input is not a valid encoded string according to this encoding.

(CharSequence chars)

Source from the content-addressed store, hash-verified

236 */
237
238 final byte[] decodeChecked(CharSequence chars) throws DecodingException {
239 chars = padding().trimTrailingFrom(chars);
240 byte[] tmp = new byte[maxDecodedSize(chars.length())];
241 int len = decodeTo(tmp, chars);
242 return extract(tmp, len);
243 }
244
245 /**
246 * Returns an {@code InputStream} that decodes base-encoded input from the specified

Callers 1

decodeMethod · 0.95

Calls 6

paddingMethod · 0.95
maxDecodedSizeMethod · 0.95
decodeToMethod · 0.95
extractMethod · 0.95
trimTrailingFromMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected