< prev index next >

test/javax/xml/jaxp/unittest/transform/VersionDefaultHandler.java

Print this page




  45         saxLocator = locator;
  46     }
  47 
  48     public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
  49         version = ((org.xml.sax.ext.Locator2) saxLocator).getXMLVersion();
  50         encoding = ((org.xml.sax.ext.Locator2) saxLocator).getEncoding();
  51     }
  52 
  53     public void error(SAXParseException e) throws SAXException {
  54         e.printStackTrace();
  55     }
  56 
  57     public String getVersion() {
  58         return version;
  59     }
  60 
  61     public String getEncoding() {
  62         return encoding;
  63     }
  64 }
  65 


  45         saxLocator = locator;
  46     }
  47 
  48     public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
  49         version = ((org.xml.sax.ext.Locator2) saxLocator).getXMLVersion();
  50         encoding = ((org.xml.sax.ext.Locator2) saxLocator).getEncoding();
  51     }
  52 
  53     public void error(SAXParseException e) throws SAXException {
  54         e.printStackTrace();
  55     }
  56 
  57     public String getVersion() {
  58         return version;
  59     }
  60 
  61     public String getEncoding() {
  62         return encoding;
  63     }
  64 }

< prev index next >