1 package com.thaiopensource.validate.rng; 2 3 import com.thaiopensource.relaxng.impl.SchemaReaderImpl; 4 import com.thaiopensource.relaxng.parse.Parseable; 5 import com.thaiopensource.relaxng.parse.sax.SAXParseable; 6 import com.thaiopensource.validate.SchemaReader; 7 import com.thaiopensource.xml.sax.XMLReaderCreator; 8 import org.xml.sax.InputSource ; 9 import org.xml.sax.ErrorHandler ; 10 11 public class SAXSchemaReader extends SchemaReaderImpl { 12 private static final SchemaReader theInstance = new SAXSchemaReader(); 13 14 private SAXSchemaReader() { 15 } 16 17 public static SchemaReader getInstance() { 18 return theInstance; 19 } 20 21 protected Parseable createParseable(XMLReaderCreator xrc, InputSource in, ErrorHandler eh) { 22 return new SAXParseable(xrc, in, eh); 23 } 24 } 25 | Popular Tags |