sk.baka.ikslibs.stax
Class STAXSource

java.lang.Object
  extended by sk.baka.ikslibs.stax.STAXSource
All Implemented Interfaces:
Source

public class STAXSource
extends Object
implements Source

Acts as an holder for a transformation Source in the form of a stream of STAX events.

Note: Due to their internal use of either a XMLEventReader or XMLStreamReader instance, StreamSource instances may only be used once.

Author:
Martin Vysny

Constructor Summary
STAXSource()
          Constructor.
STAXSource(String systemId)
          Constructor.
STAXSource(String systemId, javax.xml.stream.XMLEventReader eventReader)
          Constructor.
STAXSource(String systemId, javax.xml.stream.XMLStreamReader streamReader)
          Constructor.
STAXSource(javax.xml.stream.XMLEventReader eventReader)
          Constructor.
STAXSource(javax.xml.stream.XMLStreamReader streamReader)
          Constructor.
 
Method Summary
 javax.xml.stream.XMLEventReader getEventReader()
          Returns the event reader instance.
 javax.xml.stream.XMLStreamReader getStreamReader()
          Returns the stream reader instance.
 String getSystemId()
           
 void setEventReader(javax.xml.stream.XMLEventReader eventReader)
          Sets the event reader instance.
 void setStreamReader(javax.xml.stream.XMLStreamReader streamReader)
          Sets the stream reader instance.
 void setSystemId(String systemId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

STAXSource

public STAXSource()
Constructor.


STAXSource

public STAXSource(String systemId)
Constructor.

Parameters:
systemId - system id to initialize the object with.

STAXSource

public STAXSource(String systemId,
                  javax.xml.stream.XMLEventReader eventReader)
Constructor.

Parameters:
systemId - system id to initialize the object with.
eventReader - the event reader to set.

STAXSource

public STAXSource(String systemId,
                  javax.xml.stream.XMLStreamReader streamReader)
Constructor.

Parameters:
systemId - system id to initialize the object with.
streamReader - the stream reader to set

STAXSource

public STAXSource(javax.xml.stream.XMLEventReader eventReader)
Constructor.

Parameters:
eventReader - the event reader to set.

STAXSource

public STAXSource(javax.xml.stream.XMLStreamReader streamReader)
Constructor.

Parameters:
streamReader - the stream reader to set
Method Detail

getSystemId

public String getSystemId()
Specified by:
getSystemId in interface Source

setSystemId

public void setSystemId(String systemId)
Specified by:
setSystemId in interface Source

getEventReader

public javax.xml.stream.XMLEventReader getEventReader()
Returns the event reader instance.

Returns:
the eventReader

setEventReader

public void setEventReader(javax.xml.stream.XMLEventReader eventReader)
Sets the event reader instance.

Parameters:
eventReader - the eventReader to set

getStreamReader

public javax.xml.stream.XMLStreamReader getStreamReader()
Returns the stream reader instance.

Returns:
the streamReader

setStreamReader

public void setStreamReader(javax.xml.stream.XMLStreamReader streamReader)
Sets the stream reader instance.

Parameters:
streamReader - the streamReader to set


Copyright © 2006 Martin Vysny - baka. All Rights Reserved.