core/src/main/java/org/apache/commons/vfs2/provider/bzip2/CBZip2OutputStream.java
/**
     * modified by Oliver Merkel, 010128
     *
     * @param bv Description of Parameter
     * @throws java.io.IOException Description of Exception
     */
modified by Oliver Merkel, 010128
@param bv Description of Parameter
@throws java.io.IOException Description of Exception
modified by Oliver Merkel 010128 @param bv Description of Parameter @throws java . io . IOException Description of Exception
@Override
    public void write(int bv)
            throws IOException
    {
        int b = (256 + bv) % 256;
        if (currentChar != -1)
        {
            if (currentChar == b)
            {
                runLength++;
                if (runLength > 254)
                {
                    writeRun();
                    currentChar = -1;
                    runLength = 0;
                }
            }
            else
            {
                writeRun();
                runLength = 1;
                currentChar = b;
            }
        }
        else
        {
            currentChar = b;
            runLength++;
        }
    }
@ Override public void write ( int bv ) throws IOException { int b = ( 256 + bv ) % 256 ; if ( currentChar != - 1 ) { if ( currentChar == b ) { runLength ++ ; if ( runLength > 254 ) { writeRun ( ) ; currentChar = - 1 ; runLength = 0 ; } } else { writeRun ( ) ; runLength = 1 ; currentChar = b ; } } else { currentChar = b ; runLength ++ ; } }
modified by Oliver Merkel, 010128
 @param bv Description of Parameter
 @throws java.io.IOException Description of Exception
modified by Oliver Merkel 010128 @param bv Description of Parameter @throws java . io . IOException Description of Exception