org.apache.cocoon.components.xscript
Class XScriptObjectInlineXML

java.lang.Object
  |
  +--org.apache.cocoon.components.xscript.XScriptObject
        |
        +--org.apache.cocoon.components.xscript.XScriptObjectInlineXML
All Implemented Interfaces:
org.apache.avalon.framework.component.Composable, org.apache.avalon.excalibur.pool.Poolable, org.apache.avalon.excalibur.pool.Recyclable, Source, XMLizable

public class XScriptObjectInlineXML
extends XScriptObject

An XScriptObject created from an inline XML fragment.

Since:
July 7, 2001
Version:
CVS $Id: XScriptObjectInlineXML.java,v 1.4.2.4 2002/07/30 01:17:49 vgritsenko Exp $
Author:
Ovidiu Predescu, Vadim Gritsenko

Fields inherited from class org.apache.cocoon.components.xscript.XScriptObject
componentManager
 
Constructor Summary
XScriptObjectInlineXML(XScriptManager manager)
           
XScriptObjectInlineXML(XScriptManager manager, java.lang.String string)
           
XScriptObjectInlineXML(XScriptManager manager, java.lang.StringBuffer stringBuffer)
           
 
Method Summary
 java.lang.String getContent()
           
 org.xml.sax.ContentHandler getContentHandler()
           
 long getContentLength()
          Get the content length of the source or -1 if it is not possible to determine the length.
 org.xml.sax.InputSource getInputSource()
          Return an InputSource object to read the XML content.
 java.io.InputStream getInputStream()
          Return an InputStream object to read from the source.
 java.lang.String getSystemId()
          Return the unique identifer for this source
 java.lang.String toString()
           
 
Methods inherited from class org.apache.cocoon.components.xscript.XScriptObject
compose, getLastModified, recycle, toEmbeddedSAX, toSAX, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XScriptObjectInlineXML

public XScriptObjectInlineXML(XScriptManager manager)

XScriptObjectInlineXML

public XScriptObjectInlineXML(XScriptManager manager,
                              java.lang.StringBuffer stringBuffer)

XScriptObjectInlineXML

public XScriptObjectInlineXML(XScriptManager manager,
                              java.lang.String string)
Method Detail

getInputStream

public java.io.InputStream getInputStream()
                                   throws ProcessingException,
                                          java.io.IOException
Description copied from interface: Source
Return an InputStream object to read from the source.

getInputSource

public org.xml.sax.InputSource getInputSource()
                                       throws ProcessingException,
                                              java.io.IOException
Description copied from interface: Source
Return an InputSource object to read the XML content.
Overrides:
getInputSource in class XScriptObject
Following copied from interface: org.apache.cocoon.environment.Source
Returns:
an InputSource value
Throws:
ProcessingException - if an error occurs
java.io.IOException - if an error occurs

getContentHandler

public org.xml.sax.ContentHandler getContentHandler()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getContentLength

public long getContentLength()
Description copied from interface: Source
Get the content length of the source or -1 if it is not possible to determine the length.
Overrides:
getContentLength in class XScriptObject

getContent

public java.lang.String getContent()

getSystemId

public java.lang.String getSystemId()
Description copied from interface: Source
Return the unique identifer for this source


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.