public EFFDocHandler(FunctionDataCollector fdc) { _fdc = fdc; _elemNameStack = new Stack <string>(); _isInsideTable = false; _rowData = new ArrayList(); _textNodeBuffer = new StringBuilder(); _rowNoteFlags = new ArrayList(); }
private static void extractFunctionData(FunctionDataCollector fdc, InputStream is1) { XMLReader xr; try { // First up, try the default one xr = XMLReaderFactory.CreateXMLReader(); } catch (SAXException e) { // Try one for java 1.4 System.SetProperty("org.xml.sax.driver", "org.apache.crimson.Parser.XMLReaderImpl"); try { xr = XMLReaderFactory.CreateXMLReader(); } catch (SAXException e2) { throw new RuntimeException(e2); } } xr.SetContentHandler(new EFFDocHandler(fdc)); InputSource inSrc = new InputSource(is1); try { xr.Parse(inSrc); is1.Close(); } catch (IOException e) { throw new RuntimeException(e); } catch (SAXException e) { throw new RuntimeException(e); } }
public EFFDocHandler(FunctionDataCollector fdc) { _fdc = fdc; _elemNameStack = new Stack<string>(); _isInsideTable = false; _rowData = new ArrayList(); _textNodeBuffer = new StringBuilder(); _rowNoteFlags = new ArrayList(); }