org.apache.cocoon.components.xscript
Class XScriptObjectFromURL

java.lang.Object
  |
  +--org.apache.cocoon.components.xscript.XScriptObject
        |
        +--org.apache.cocoon.components.xscript.XScriptObjectFromURL
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 XScriptObjectFromURL
extends XScriptObject

An XScriptObject created from the contents of a URL.

Since:
August 30, 2001
Version:
CVS $Id: XScriptObjectFromURL.java,v 1.5.2.3 2002/07/30 01:17:49 vgritsenko Exp $
Author:
Ovidiu Predescu

Fields inherited from class org.apache.cocoon.components.xscript.XScriptObject
componentManager
 
Constructor Summary
XScriptObjectFromURL(XScriptManager manager, java.lang.String systemId)
           
 
Method Summary
 long getContentLength()
          Get the content length of the source or -1 if it is not possible to determine the length.
 java.io.InputStream getInputStream()
          Return an InputStream object to read from the source.
 long getLastModified()
          Get the last modification date of the source or 0 if it is not possible to determine the date.
 java.lang.String getSystemId()
          Return the unique identifer for this source
 void recycle()
           
 java.lang.String toString()
           
 
Methods inherited from class org.apache.cocoon.components.xscript.XScriptObject
compose, getInputSource, toEmbeddedSAX, toSAX, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XScriptObjectFromURL

public XScriptObjectFromURL(XScriptManager manager,
                            java.lang.String systemId)
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.

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

getLastModified

public long getLastModified()
Description copied from interface: Source
Get the last modification date of the source or 0 if it is not possible to determine the date.
Overrides:
getLastModified in class XScriptObject

getSystemId

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

recycle

public void recycle()
Overrides:
recycle in class XScriptObject

toString

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


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