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.
franta-hg@2
     1
package cz.frantovo.alt2xml;
franta-hg@2
     2
franta-hg@2
     3
import javax.xml.parsers.ParserConfigurationException;
franta-hg@2
     4
import javax.xml.parsers.SAXParser;
franta-hg@2
     5
import javax.xml.parsers.SAXParserFactory;
franta-hg@2
     6
import org.xml.sax.SAXException;
franta-hg@2
     7
import org.xml.sax.SAXNotRecognizedException;
franta-hg@2
     8
import org.xml.sax.SAXNotSupportedException;
franta-hg@2
     9
franta-hg@2
    10
/**
franta-hg@2
    11
 *
franta-hg@2
    12
 * @author fiki
franta-hg@2
    13
 */
franta-hg@2
    14
public class SAXTovarna extends SAXParserFactory {
franta-hg@2
    15
franta-hg@2
    16
	@Override
franta-hg@2
    17
	public SAXParser newSAXParser() throws ParserConfigurationException, SAXException {
franta-hg@2
    18
		return new AltParser();
franta-hg@2
    19
	}
franta-hg@2
    20
franta-hg@2
    21
	@Override
franta-hg@2
    22
	public void setFeature(String name, boolean value) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException {
franta-hg@2
    23
		throw new UnsupportedOperationException("Not supported yet.");
franta-hg@2
    24
	}
franta-hg@2
    25
franta-hg@2
    26
	@Override
franta-hg@2
    27
	public boolean getFeature(String name) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException {
franta-hg@2
    28
		throw new UnsupportedOperationException("Not supported yet.");
franta-hg@2
    29
	}
franta-hg@2
    30
	
franta-hg@2
    31
}