/[classpath]/classpath/gnu/xml/dom/ls/DomLSParser.java
ViewVC logotype

Diff of /classpath/gnu/xml/dom/ls/DomLSParser.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by mark, Thu Dec 23 22:38:43 2004 UTC revision 1.2 by dog, Thu Feb 10 17:21:25 2005 UTC
# Line 65  import org.xml.sax.SAXNotRecognizedExcep Line 65  import org.xml.sax.SAXNotRecognizedExcep
65  import org.xml.sax.SAXParseException;  import org.xml.sax.SAXParseException;
66  import org.xml.sax.XMLReader;  import org.xml.sax.XMLReader;
67  import gnu.xml.dom.DomDocument;  import gnu.xml.dom.DomDocument;
68  import gnu.xml.dom.DomEx;  import gnu.xml.dom.DomDOMException;
69    
70  /**  /**
71   * Parser implementation for GNU DOM.   * Parser implementation for GNU DOM.
# Line 117  public class DomLSParser Line 117  public class DomLSParser
117          async = false;          async = false;
118          break;          break;
119        default:        default:
120          throw new DomEx(DOMException.NOT_SUPPORTED_ERR);          throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR);
121        }        }
122      // TODO schemaType      // TODO schemaType
123      this.schemaType = schemaType;      this.schemaType = schemaType;
# Line 307  public class DomLSParser Line 307  public class DomLSParser
307        {        {
308          reader = null;          reader = null;
309          eventSink = null;          eventSink = null;
310          throw new DomLSEx(LSException.PARSE_ERR, e);          throw new DomLSException(LSException.PARSE_ERR, e);
311        }        }
312      catch (IOException e)      catch (IOException e)
313        {        {
314          reader = null;          reader = null;
315          eventSink = null;          eventSink = null;
316          throw new DomLSEx(LSException.PARSE_ERR, e);          throw new DomLSException(LSException.PARSE_ERR, e);
317        }        }
318      // return document      // return document
319      Document ret = eventSink.doc;      Document ret = eventSink.doc;
# Line 341  public class DomLSParser Line 341  public class DomLSParser
341            }            }
342          catch (ParserConfigurationException e)          catch (ParserConfigurationException e)
343            {            {
344              throw new DomLSEx(LSException.PARSE_ERR, e);              throw new DomLSException(LSException.PARSE_ERR, e);
345            }            }
346          catch (SAXException e)          catch (SAXException e)
347            {            {
348              throw new DomLSEx(LSException.PARSE_ERR, e);              throw new DomLSException(LSException.PARSE_ERR, e);
349            }            }
350        }        }
351      return reader;      return reader;
# Line 371  public class DomLSParser Line 371  public class DomLSParser
371            }            }
372          catch (SAXException e)          catch (SAXException e)
373            {            {
374              throw new DomLSEx(LSException.PARSE_ERR, e);              throw new DomLSException(LSException.PARSE_ERR, e);
375            }            }
376          catch (IOException e)          catch (IOException e)
377            {            {
378              throw new DomLSEx(LSException.PARSE_ERR, e);              throw new DomLSException(LSException.PARSE_ERR, e);
379            }            }
380        }        }
381      if (source == null)      if (source == null)
# Line 403  public class DomLSParser Line 403  public class DomLSParser
403            }            }
404          catch (IOException e)          catch (IOException e)
405            {            {
406              throw new DomLSEx(LSException.PARSE_ERR, e);              throw new DomLSException(LSException.PARSE_ERR, e);
407            }            }
408        }        }
409      return source;      return source;
# Line 457  public class DomLSParser Line 457  public class DomLSParser
457        }        }
458      else      else
459        {        {
460          throw new DomEx(DomEx.NOT_SUPPORTED_ERR);          throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR);
461        }        }
462      // invalidate reader, a new one will be created      // invalidate reader, a new one will be created
463      reader = null;      reader = null;
# Line 509  public class DomLSParser Line 509  public class DomLSParser
509        }        }
510      else      else
511        {        {
512          throw new DomEx(DomEx.NOT_SUPPORTED_ERR);          throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR);
513        }        }
514    }    }
515    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26