XMLDecoder parsing code for XML documents!

xiaoxiao2021-03-06  37

public Object readObject () {if (in == null) {return null;} if (handler == null) {SAXParserFactory factory = SAXParserFactory.newInstance (); try {SAXParser saxParser = factory.newSAXParser (); handler = new ObjectHandler (this, getClassLoader ()); saxParser.parse (in, handler);} catch (ParserConfigurationException e) {getExceptionListener () exceptionThrown (e);.} catch (SAXException se) {Exception e = se.getException (); getExceptionListener (). EXCEPTIONTHROWN ((e == null)? SE: E);} catch (ioException ie) {getExceptionListener (). Exceptionthrown (IOE);}} return handler.dequEueResult ();}

转载请注明原文地址:https://www.9cbs.com/read-75765.html

New Post(0)