DOTParser
{
setContentHandler(DefaultHandler); //set a handler for handling elements met
parse(InputStream); //to start parse dot from input stream
}
DOTParseException
{}
DefaultHandler //interface
{
void startDocument(); //Receive notification of the beginning of the document.
void endDocument(); //Receive notification of the end of the document.
void warning(DOTParseException); //Receive notification of a parser warning.
void error(); //Receive notification of a recoverable parser error.
void fatalError(); //Report a fatal DOT parsing error.
void startGraph(); //Receivenotification of the beginning of a graph
void endGraph(); //Receive notification of the end of a graph
void startNode(); //Receive notification of the beginning of a node
void endNode(); //Receive notification of the end of a node
void startEdge(); //Receive notification of the beginning of a edge
void endEdge(); //Receive notification of the end of a edge
void startAttr(); //Receive notification of the beginning of a attribution
void endAttr(); //Receive notification of the end of a attribution
void startSubgraph(); //Receive notificatin ot the beginning of a sub graph
void endSubgraph(); //Receive notification of the end of a sub graph
}