BitOutputStream

BitOutputStream

Overview

BitOutputStream is a class in Aspose.PDF FOSS for Java.

Writes bits to a byte array, MSB first, crossing byte boundaries.

This class provides 3 methods for working with BitOutputStream objects in Java programs. Available methods include: alignToByte, toByteArray, writeBits. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.

Methods

SignatureDescription
writeBits(value: int, numBits: int)Writes {@code numBits} bits from the low-order bits of {@code value}.
alignToByte()Advances to the next byte boundary.
toByteArray()byte[]Returns a copy of the written bytes.

See Also

 English