Class RLE4Decoder

  • All Implemented Interfaces:
    Decoder

    final class RLE4Decoder
    extends AbstractRLEDecoder
    Implements 4 bit RLE decoding as specified by in the Windows BMP (aka DIB) file format.
    Version:
    $Id: RLE4Decoder.java#1 $
    • Field Detail

      • BIT_MASKS

        static final int[] BIT_MASKS
      • BIT_SHIFTS

        static final int[] BIT_SHIFTS
    • Constructor Detail

      • RLE4Decoder

        public RLE4Decoder​(int width)
    • Method Detail

      • decodeRow

        protected void decodeRow​(java.io.InputStream stream)
                          throws java.io.IOException
        Description copied from class: AbstractRLEDecoder
        Decodes one full row of image data.
        Specified by:
        decodeRow in class AbstractRLEDecoder
        Parameters:
        stream - the input stream containing RLE data
        Throws:
        java.io.IOException - if an I/O related exception occurs while reading