org.basex.api.xqj
Class XMLStreamWrapper

java.lang.Object
  extended by org.basex.build.Parser
      extended by org.basex.api.xqj.XMLStreamWrapper

public final class XMLStreamWrapper
extends Parser

This class parses an XML document via a conventional SAX parser. Would be the easiest solution, but some large file cannot be parsed with the default parser.

Author:
Workgroup DBIS, University of Konstanz 2005-08, ISC License, Christian Gruen

Field Summary
 
Fields inherited from class org.basex.build.Parser
atts, io
 
Constructor Summary
XMLStreamWrapper(javax.xml.stream.XMLStreamReader sr)
          Constructor.
 
Method Summary
 java.lang.String det()
          Returns detailed progress information.
 java.lang.String head()
          Returns a compact description of the current progress.
 void parse(Builder builder)
          Parses all nodes and sends events to the specified builder.
 double prog()
          Returns a value from 0 to 1, representing the current progress.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLStreamWrapper

public XMLStreamWrapper(javax.xml.stream.XMLStreamReader sr)
Constructor.

Parameters:
sr - stream reader
Method Detail

parse

public void parse(Builder builder)
           throws java.io.IOException
Description copied from class: Parser
Parses all nodes and sends events to the specified builder.

Specified by:
parse in class Parser
Parameters:
builder - event listener.
Throws:
java.io.IOException - I/O exception

head

public java.lang.String head()
Description copied from class: Parser
Returns a compact description of the current progress.

Specified by:
head in class Parser
Returns:
progress information

det

public java.lang.String det()
Description copied from class: Parser
Returns detailed progress information.

Specified by:
det in class Parser
Returns:
position info

prog

public double prog()
Description copied from class: Parser
Returns a value from 0 to 1, representing the current progress.

Specified by:
prog in class Parser
Returns:
progress information