/** Write a string to a stream. * @param outputStream is the output stream. * @param value is the string to write. */ static void writeString(final OutputStream outputStream, final String value) throws IOException { writeByteArray(outputStream, value.getBytes(StandardCharsets.UTF_8)); }
/** Write a bitset to a stream. * @param outputStream is the output stream. * @param bitSet is the bit set to write. */ static void writeBitSet(final OutputStream outputStream, final BitSet bitSet) throws IOException { writeByteArray(outputStream, bitSet.toByteArray()); }