MCPcopy Create free account
hub / github.com/jwtk/jjwt / BytesInputStream

Class BytesInputStream

impl/src/main/java/io/jsonwebtoken/impl/io/BytesInputStream.java:29–43  ·  view source on GitHub ↗

Allows read access to the internal byte array, avoiding the need copy/extract to a java.io.ByteArrayOutputStream. @since 0.12.2

Source from the content-addressed store, hash-verified

27 * @since 0.12.2
28 */
29public final class BytesInputStream extends ByteArrayInputStream {
30
31 BytesInputStream(byte[] buf) {
32 super(Bytes.isEmpty(buf) ? Bytes.EMPTY : buf);
33 }
34
35 public byte[] getBytes() {
36 return this.buf;
37 }
38
39 @Override
40 public void close() throws IOException {
41 reset();
42 }
43}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…