com.ctc.wstx.io
Class InputSourceFactory

java.lang.Object
  extended bycom.ctc.wstx.io.InputSourceFactory

public final class InputSourceFactory
extends java.lang.Object

Factory class that creates instances of WstxInputSource to allow reading input from various sources.


Constructor Summary
InputSourceFactory()
           
 
Method Summary
static WstxInputSource constructCharArraySource(WstxInputSource parent, java.lang.String fromEntity, char[] text, int offset, int len, javax.xml.stream.Location loc, java.net.URL src)
          Factory method usually used to expand internal parsed entities; in which case context remains mostly the same.
static BranchingReaderSource constructDocumentSource(InputBootstrapper bs, java.lang.String pubId, java.lang.String sysId, java.net.URL src, java.io.Reader r, boolean realClose, int bufSize)
          Factory method used for creating the main-level document reader source.
static ReaderSource constructEntitySource(WstxInputSource parent, java.lang.String entityName, InputBootstrapper bs, java.lang.String pubId, java.lang.String sysId, java.net.URL src, java.io.Reader r)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputSourceFactory

public InputSourceFactory()
Method Detail

constructEntitySource

public static ReaderSource constructEntitySource(WstxInputSource parent,
                                                 java.lang.String entityName,
                                                 InputBootstrapper bs,
                                                 java.lang.String pubId,
                                                 java.lang.String sysId,
                                                 java.net.URL src,
                                                 java.io.Reader r)
Parameters:
parent -
entityName - Name of the entity expanded to create this input source: null when source created for the (main level) external DTD subset entity.

constructDocumentSource

public static BranchingReaderSource constructDocumentSource(InputBootstrapper bs,
                                                            java.lang.String pubId,
                                                            java.lang.String sysId,
                                                            java.net.URL src,
                                                            java.io.Reader r,
                                                            boolean realClose,
                                                            int bufSize)
Factory method used for creating the main-level document reader source.


constructCharArraySource

public static WstxInputSource constructCharArraySource(WstxInputSource parent,
                                                       java.lang.String fromEntity,
                                                       char[] text,
                                                       int offset,
                                                       int len,
                                                       javax.xml.stream.Location loc,
                                                       java.net.URL src)
Factory method usually used to expand internal parsed entities; in which case context remains mostly the same.