jlibs.xml.sax
Class SAXUtil

java.lang.Object
  extended by jlibs.xml.sax.SAXUtil

public class SAXUtil
extends Object

Author:
Santhosh Kumar T

Constructor Summary
SAXUtil()
           
 
Method Summary
static SAXParserFactory newSAXFactory(boolean namespaces, boolean nsPrefixes, boolean validating)
           
static SAXParser newSAXParser(boolean namespaces, boolean nsPrefixes, boolean validating)
           
static void setHandler(XMLReader reader, Object handler)
          Registers all sax hander interfaces implemented by handler to the specified reader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAXUtil

public SAXUtil()
Method Detail

newSAXFactory

public static SAXParserFactory newSAXFactory(boolean namespaces,
                                             boolean nsPrefixes,
                                             boolean validating)
                                      throws ParserConfigurationException,
                                             SAXException
Throws:
ParserConfigurationException
SAXException

newSAXParser

public static SAXParser newSAXParser(boolean namespaces,
                                     boolean nsPrefixes,
                                     boolean validating)
                              throws ParserConfigurationException,
                                     SAXException
Throws:
ParserConfigurationException
SAXException

setHandler

public static void setHandler(XMLReader reader,
                              Object handler)
                       throws SAXNotSupportedException,
                              SAXNotRecognizedException
Registers all sax hander interfaces implemented by handler to the specified reader

Throws:
SAXNotSupportedException
SAXNotRecognizedException


Copyright © 2015. All rights reserved.