java/alt2xml/src/cz/frantovo/alt2xml/SAXTovarna.java
author František Kučera <franta-hg@frantovo.cz>
Mon, 02 Jan 2012 20:15:52 +0100
changeset 2 be5bfbe1f0cd
child 3 6c608fd8c019
permissions -rw-r--r--
První nástřel – trochu už to funguje, převádí JSON na XML.
     1 package cz.frantovo.alt2xml;
     2 
     3 import javax.xml.parsers.ParserConfigurationException;
     4 import javax.xml.parsers.SAXParser;
     5 import javax.xml.parsers.SAXParserFactory;
     6 import org.xml.sax.SAXException;
     7 import org.xml.sax.SAXNotRecognizedException;
     8 import org.xml.sax.SAXNotSupportedException;
     9 
    10 /**
    11  *
    12  * @author fiki
    13  */
    14 public class SAXTovarna extends SAXParserFactory {
    15 
    16 	@Override
    17 	public SAXParser newSAXParser() throws ParserConfigurationException, SAXException {
    18 		return new AltParser();
    19 	}
    20 
    21 	@Override
    22 	public void setFeature(String name, boolean value) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException {
    23 		throw new UnsupportedOperationException("Not supported yet.");
    24 	}
    25 
    26 	@Override
    27 	public boolean getFeature(String name) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException {
    28 		throw new UnsupportedOperationException("Not supported yet.");
    29 	}
    30 	
    31 }