com.sun.japex.jdsl.xml.serialize.stax
Class BaseStAXDriver

java.lang.Object
  extended by com.sun.japex.JapexDriverBase
      extended by com.sun.japex.jdsl.xml.BaseParserDriver
          extended by com.sun.japex.jdsl.xml.serialize.stax.BaseStAXDriver
All Implemented Interfaces:
JapexDriver, Params, java.util.concurrent.Callable<java.lang.Object>
Direct Known Subclasses:
SunSJSXPStAXDriver

public abstract class BaseStAXDriver
extends BaseParserDriver

This class uses an XMLStreamBuffer to read the input document into memory and then write to an XMLStreamWriter. A subclass should only need to override method initializeDriver in order to instantiate the appropriate output factory.

Author:
Santiago.PericasGeertsen@sun.com

Field Summary
protected  java.lang.String _encoding
           
protected  java.io.ByteArrayOutputStream _outputStream
           
protected  javax.xml.stream.XMLInputFactory _xmlInputFactory
           
protected  javax.xml.stream.XMLOutputFactory _xmlOutputFactory
           
protected  com.sun.xml.stream.buffer.XMLStreamBuffer _xmlStreamBuffer
           
 
Fields inherited from class com.sun.japex.jdsl.xml.BaseParserDriver
_builder, _externalVocabularyMap, _initialVocabulary, _inputStream, _saxSerializer, _xmlFile, TESTCASE_NORMALIZE
 
Fields inherited from class com.sun.japex.JapexDriverBase
_driver, _endTime, _needWarmup, _testCase, _testSuite
 
Constructor Summary
BaseStAXDriver()
           
 
Method Summary
 void initializeDriver()
           
 void prepare(TestCase testCase)
           
 void run(TestCase testCase)
           
 
Methods inherited from class com.sun.japex.jdsl.xml.BaseParserDriver
createDocument, finish, prepareFI, prepareXML
 
Methods inherited from class com.sun.japex.JapexDriverBase
call, finish, getBooleanParam, getDoubleParam, getIntParam, getLongParam, getParam, getTestSuite, hasParam, prepare, run, setBooleanParam, setDoubleParam, setDriver, setEndTime, setIntParam, setLongParam, setParam, setTestCase, setTestSuite, terminateDriver, warmup, warmup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_xmlInputFactory

protected javax.xml.stream.XMLInputFactory _xmlInputFactory

_xmlOutputFactory

protected javax.xml.stream.XMLOutputFactory _xmlOutputFactory

_xmlStreamBuffer

protected com.sun.xml.stream.buffer.XMLStreamBuffer _xmlStreamBuffer

_outputStream

protected java.io.ByteArrayOutputStream _outputStream

_encoding

protected java.lang.String _encoding
Constructor Detail

BaseStAXDriver

public BaseStAXDriver()
Method Detail

initializeDriver

public void initializeDriver()
Specified by:
initializeDriver in interface JapexDriver
Overrides:
initializeDriver in class JapexDriverBase

prepare

public void prepare(TestCase testCase)
Specified by:
prepare in interface JapexDriver
Overrides:
prepare in class BaseParserDriver

run

public void run(TestCase testCase)
Specified by:
run in interface JapexDriver
Overrides:
run in class JapexDriverBase


Copyright © 2011. All Rights Reserved.