public static DXFParser buildFromStream(InputStream in) { SAXParserBuilder builder = new SAXParserBuilder();
public static Parser buildFromStream(InputStream in) {
    public static DXFParser buildFromStream(InputStream in) {        SAXParserBuilder builder = new SAXParserBuilder();        try {            XMLReader saxparser = XMLReaderFactory.createXMLReader();            saxparser.setContentHandler(builder);            saxparser.parse(new InputSource(in));        } catch (SAXException e) {            System.err.println(e.getMessage());        } catch (IOException ioe) {        }        return builder.getParser();    }