KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > thaiopensource > validate > rng > CompactSchemaReader


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.compact.CompactParseable;
6 import com.thaiopensource.validate.SchemaReader;
7 import com.thaiopensource.xml.sax.XMLReaderCreator;
8 import org.xml.sax.InputSource JavaDoc;
9 import org.xml.sax.ErrorHandler JavaDoc;
10
11 public class CompactSchemaReader extends SchemaReaderImpl {
12   private static final SchemaReader theInstance = new CompactSchemaReader();
13
14   private CompactSchemaReader() {
15   }
16
17   public static SchemaReader getInstance() {
18     return theInstance;
19   }
20
21   protected Parseable createParseable(XMLReaderCreator xrc, InputSource JavaDoc in, ErrorHandler JavaDoc eh) {
22     return new CompactParseable(in, eh);
23   }
24 }
25
Popular Tags