Logo Search packages:      
Sourcecode: jardiff version File versions  Download package

void org::osjava::jardiff::StreamDiffHandler::classChanged ( ClassInfo  oldInfo,
ClassInfo  newInfo 
) throws DiffException [inline]

Write out info aboout a changed class. This writes out a <classchange> node, followed by a <from> node, with the old information about the class followed by a <to> node with the new information about the class.

Parameters:
oldInfo Info about the old class.
newInfo Info about the new class.
Exceptions:
DiffException when there is an underlying exception, e.g. writing to a file caused an IOException

Implements org::osjava::jardiff::DiffHandler.

Definition at line 405 of file StreamDiffHandler.java.

References out, and writeClassInfo().

    {
        try {
            out.write("<classchange><from>");
            writeClassInfo(oldInfo);
            out.write("</from><to>");
            writeClassInfo(newInfo);
            out.write("</to></classchange>");
        } catch (IOException ioe) {
            throw new DiffException(ioe);
        }
    }


Generated by  Doxygen 1.6.0   Back to index