com.thaiopensource.relaxng.parse.compact
Class CompactParseable

java.lang.Object
  extended by com.thaiopensource.relaxng.parse.compact.CompactParseable
All Implemented Interfaces:
Parseable, SubParser

public class CompactParseable
extends Object
implements Parseable


Field Summary
private  ErrorHandler eh
           
private  EntityResolver er
           
private  InputSource in
           
private static String UTF16
           
private static String UTF8
           
 
Constructor Summary
CompactParseable(InputSource in, ErrorHandler eh, EntityResolver er)
           
 
Method Summary
private static String detectEncoding(PushbackInputStream in)
           
private static Reader makeReader(InputSource is, EntityResolver er)
           
 ParsedPattern parse(SchemaBuilder sb, Scope scope)
           
 ParsedPattern parseExternal(String uri, SchemaBuilder sb, Scope scope)
           
 ParsedPattern parseInclude(String uri, SchemaBuilder sb, IncludedGrammar g)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

private final InputSource in

eh

private final ErrorHandler eh

er

private final EntityResolver er

UTF8

private static final String UTF8

UTF16

private static final String UTF16
Constructor Detail

CompactParseable

public CompactParseable(InputSource in,
                        ErrorHandler eh,
                        EntityResolver er)
Method Detail

parse

public ParsedPattern parse(SchemaBuilder sb,
                           Scope scope)
                    throws BuildException,
                           IllegalSchemaException
Specified by:
parse in interface Parseable
Throws:
BuildException
IllegalSchemaException

parseInclude

public ParsedPattern parseInclude(String uri,
                                  SchemaBuilder sb,
                                  IncludedGrammar g)
                           throws BuildException,
                                  IllegalSchemaException
Specified by:
parseInclude in interface SubParser
Throws:
BuildException
IllegalSchemaException

parseExternal

public ParsedPattern parseExternal(String uri,
                                   SchemaBuilder sb,
                                   Scope scope)
                            throws BuildException,
                                   IllegalSchemaException
Specified by:
parseExternal in interface SubParser
Throws:
BuildException
IllegalSchemaException

makeReader

private static Reader makeReader(InputSource is,
                                 EntityResolver er)
                          throws BuildException
Throws:
BuildException

detectEncoding

private static String detectEncoding(PushbackInputStream in)
                              throws IOException
Throws:
IOException