Return `this` in various output methods so you can write something like new DerOutputStream().putInteger(1) .putOctetString("12345".getBytes(StandardCharsets.UTF_8)) .write(AlgorithmId.get("ed25519")) .writeImplicit((byte)0x80, new DerOutputStream().putUnalignedBitString(ba)).toByteArray();
No regression test. Trivial pure enhancement. ------------- Commit messages: - code change Changes: https://git.openjdk.org/jdk/pull/10608/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=10608&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8294987 Stats: 91 lines in 1 file changed: 30 ins; 18 del; 43 mod Patch: https://git.openjdk.org/jdk/pull/10608.diff Fetch: git fetch https://git.openjdk.org/jdk pull/10608/head:pull/10608 PR: https://git.openjdk.org/jdk/pull/10608