UTF-X, Unit Testing Framework - Xslt

utfx.framework
Class SourceParserWrapper

java.lang.Object
  extended by utfx.framework.SourceParserWrapper
All Implemented Interfaces:
SourceParser

public class SourceParserWrapper
extends java.lang.Object
implements SourceParser

This special source builder is used for wrapping source builders that do not implement the SourceParser interface. This funtionality is required to support source builders compiled under j2se 1.4

Copyright © 2004 - University of Southern Queensland.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

$Source: /cvs/utf-x/framework/src/java/utfx/framework/SourceParserWrapper.java,v $

Version:
$Revision: 1.2 $ $Date: 2006/08/01 07:39:53 $ $Name: release_0_0_8_alpha $
Author:
Jacek Radajewski

Field Summary
private  java.lang.Object sourceBuilder
          The source builder we are wrapping.
 
Constructor Summary
SourceParserWrapper(java.lang.Object sourceBuilder)
          Create a new instance of SourceParserWrapper.
 
Method Summary
 javax.xml.transform.Source getSource(java.io.InputStream inStream)
          Creates a transformer.Source from an input stream.
 java.lang.Object getSourceBuilder()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sourceBuilder

private java.lang.Object sourceBuilder
The source builder we are wrapping.

Constructor Detail

SourceParserWrapper

public SourceParserWrapper(java.lang.Object sourceBuilder)
Create a new instance of SourceParserWrapper.

Parameters:
sourceBuilder - the source builder we are warpping.
Method Detail

getSource

public javax.xml.transform.Source getSource(java.io.InputStream inStream)
                                     throws java.lang.Exception
Description copied from interface: SourceParser
Creates a transformer.Source from an input stream.

Specified by:
getSource in interface SourceParser
Parameters:
inStream - InputStream with the content of the <source> element.
Returns:
transformer.Source
Throws:
java.lang.Exception
See Also:
SourceParser.getSource(java.io.InputStream)

getSourceBuilder

public java.lang.Object getSourceBuilder()
Returns:
the source builder this class is wrapping.

UTF-X, Unit Testing Framework - Xslt