org.codehaus.plexus.components.io.resources.proxy
Class PlexusIoProxyResourceWithAttributes

java.lang.Object
  extended byorg.codehaus.plexus.components.io.resources.AbstractPlexusIoResource
      extended byorg.codehaus.plexus.components.io.resources.AbstractPlexusIoResourceWithAttributes
          extended byorg.codehaus.plexus.components.io.resources.proxy.PlexusIoProxyResourceWithAttributes
All Implemented Interfaces:
FileInfo, PlexusIoResource, PlexusIoResourceWithAttributes

public class PlexusIoProxyResourceWithAttributes
extends AbstractPlexusIoResourceWithAttributes


Field Summary
 
Fields inherited from interface org.codehaus.plexus.components.io.resources.PlexusIoResource
UNKNOWN_MODIFICATION_DATE, UNKNOWN_RESOURCE_SIZE
 
Constructor Summary
PlexusIoProxyResourceWithAttributes(PlexusIoResourceWithAttributes plexusIoResource)
           
 
Method Summary
 java.io.InputStream getContents()
          Creates an InputStream, which may be used to read the files contents.
 java.net.URL getURL()
          Returns an URL, which may be used to reference the resource, if possible.
 
Methods inherited from class org.codehaus.plexus.components.io.resources.AbstractPlexusIoResourceWithAttributes
getAttributes, setAttributes
 
Methods inherited from class org.codehaus.plexus.components.io.resources.AbstractPlexusIoResource
getLastModified, getName, getSize, isDirectory, isExisting, isFile, setDirectory, setExisting, setFile, setLastModified, setName, setSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.plexus.components.io.resources.PlexusIoResource
getLastModified, getSize, isExisting
 
Methods inherited from interface org.codehaus.plexus.components.io.fileselectors.FileInfo
getName, isDirectory, isFile
 

Constructor Detail

PlexusIoProxyResourceWithAttributes

public PlexusIoProxyResourceWithAttributes(PlexusIoResourceWithAttributes plexusIoResource)
Method Detail

getURL

public java.net.URL getURL()
                    throws java.io.IOException
Description copied from interface: PlexusIoResource
Returns an URL, which may be used to reference the resource, if possible.

Returns:
An URL referencing the resource, if possible, or null. In the latter case, you are forced to use #getInputStream().
Throws:
java.io.IOException

getContents

public java.io.InputStream getContents()
                                throws java.io.IOException
Description copied from interface: FileInfo
Creates an InputStream, which may be used to read the files contents. This is useful, if the file selector comes to a decision based on the files contents.

Throws:
java.io.IOException


Copyright © 2001-2009 Codehaus. All Rights Reserved.