errors.add( parseError( buffer.toString() ) );
if ( buffer.length() > 0 ) {  errors.add( parseError( buffer.toString() ) ); }
    protected List parseStream( BufferedReader input ) throws IOException    {        List errors = null;        String line = null;        StringBuffer buffer = null;        while ( true )        {            // cleanup the buffer            buffer = new StringBuffer(); // this is faster than clearing it            // first line is not space-starting            if ( line == null )            {                line = input.readLine();            }            if ( line == null )            {                return errors;            }            buffer.append( line );            // all other space-starting lines are one error            while ( true )            {                line = input.readLine();                // EOF                if ( line == null )                {                    break;                }                // Continuation of previous error starts with ' '                if ( line.length() > 0 && line.charAt( 0 ) != ' ' )                {                    break;                }                buffer.append( '\n' );                buffer.append( line );            }            // if error is found create the vector            if ( errors == null )            {                errors = new ArrayList();            }            // add the error bean            errors.add( parseError( buffer.toString() ) );        }    }