com.sun.japex.jdsl.xml.size
Class BaseSizeDriver

java.lang.Object
  extended by com.sun.japex.JapexDriverBase
      extended by com.sun.japex.jdsl.xml.size.BaseSizeDriver
All Implemented Interfaces:
JapexDriver, Params, java.util.concurrent.Callable<java.lang.Object>
Direct Known Subclasses:
FastInfosetSizeDriver, XMLSizeDriver

public abstract class BaseSizeDriver
extends JapexDriverBase


Field Summary
protected  byte[] _content
           
 
Fields inherited from class com.sun.japex.JapexDriverBase
_driver, _endTime, _needWarmup, _testCase, _testSuite
 
Constructor Summary
BaseSizeDriver()
           
 
Method Summary
protected  javax.xml.parsers.SAXParser createSAXParser()
           
 void finish(TestCase testCase)
           
protected  byte[] getBytesFromInputStream(java.io.InputStream in)
           
protected  java.io.InputStream getInputStream(java.lang.String fileName)
           
protected abstract  void serialize(java.io.InputStream in, java.lang.String fileName)
           
 
Methods inherited from class com.sun.japex.JapexDriverBase
call, finish, getBooleanParam, getDoubleParam, getIntParam, getLongParam, getParam, getTestSuite, hasParam, initializeDriver, prepare, prepare, run, 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

_content

protected byte[] _content
Constructor Detail

BaseSizeDriver

public BaseSizeDriver()
Method Detail

createSAXParser

protected javax.xml.parsers.SAXParser createSAXParser()
                                               throws javax.xml.parsers.ParserConfigurationException,
                                                      org.xml.sax.SAXException
Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException

getInputStream

protected java.io.InputStream getInputStream(java.lang.String fileName)
                                      throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

getBytesFromInputStream

protected byte[] getBytesFromInputStream(java.io.InputStream in)

finish

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

serialize

protected abstract void serialize(java.io.InputStream in,
                                  java.lang.String fileName)
                           throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2011. All Rights Reserved.