org.apache.cocoon.core.container.spring.avalon
Class SourceResource

java.lang.Object
  extended byorg.apache.cocoon.core.container.spring.avalon.SourceResource
All Implemented Interfaces:
InputStreamSource, Resource

public class SourceResource
extends Object
implements Resource

Version:
$Id: SourceResource.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Field Summary
protected  boolean open
           
protected  SourceResolver resolver
           
protected  Source source
           
 
Constructor Summary
SourceResource(Source s, SourceResolver r)
           
 
Method Summary
 Resource createRelative(String uri)
           
 boolean exists()
           
 String getDescription()
           
 File getFile()
           
 String getFilename()
           
 InputStream getInputStream()
           
 URI getURI()
           
 URL getURL()
           
 String getUrlString()
           
 boolean isOpen()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

protected Source source

resolver

protected SourceResolver resolver

open

protected boolean open
Constructor Detail

SourceResource

public SourceResource(Source s,
                      SourceResolver r)
Method Detail

getInputStream

public InputStream getInputStream()
                           throws IOException
Specified by:
getInputStream in interface InputStreamSource
Throws:
IOException
See Also:
InputStreamSource.getInputStream()

createRelative

public Resource createRelative(String uri)
                        throws IOException
Specified by:
createRelative in interface Resource
Throws:
IOException
See Also:
Resource.createRelative(java.lang.String)

exists

public boolean exists()
Specified by:
exists in interface Resource
See Also:
Resource.exists()

getDescription

public String getDescription()
Specified by:
getDescription in interface Resource
See Also:
Resource.getDescription()

getFile

public File getFile()
             throws IOException
Specified by:
getFile in interface Resource
Throws:
IOException
See Also:
Resource.getFile()

getFilename

public String getFilename()
Specified by:
getFilename in interface Resource
See Also:
Resource.getFilename()

getURL

public URL getURL()
           throws IOException
Specified by:
getURL in interface Resource
Throws:
IOException
See Also:
Resource.getURL()

getUrlString

public String getUrlString()

isOpen

public boolean isOpen()
Specified by:
isOpen in interface Resource
See Also:
Resource.isOpen()

getURI

public URI getURI()
           throws IOException
Specified by:
getURI in interface Resource
Throws:
IOException


Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.