org.jasig.schedassist.portlet.spring
Class DelegatingResource
java.lang.Object
org.jasig.schedassist.portlet.spring.DelegatingResource
- All Implemented Interfaces:
- org.springframework.core.io.InputStreamSource, org.springframework.core.io.Resource
public class DelegatingResource
- extends Object
- implements org.springframework.core.io.Resource
Resource implementation that delegates to the
Resource provided in the constructor.
- Version:
- $Id: DelegatingResource.java $
- Author:
- Nicholas Blair, nblair@doit.wisc.edu
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelegatingResource
public DelegatingResource(org.springframework.core.io.Resource resource)
- Parameters:
resource -
getInputStream
public InputStream getInputStream()
throws IOException
- Specified by:
getInputStream in interface org.springframework.core.io.InputStreamSource
- Throws:
IOException
createRelative
public org.springframework.core.io.Resource createRelative(String arg0)
throws IOException
- Specified by:
createRelative in interface org.springframework.core.io.Resource
- Throws:
IOException
exists
public boolean exists()
- Specified by:
exists in interface org.springframework.core.io.Resource
getDescription
public String getDescription()
- Specified by:
getDescription in interface org.springframework.core.io.Resource
getFile
public File getFile()
throws IOException
- Specified by:
getFile in interface org.springframework.core.io.Resource
- Throws:
IOException
getFilename
public String getFilename()
- Specified by:
getFilename in interface org.springframework.core.io.Resource
getURI
public URI getURI()
throws IOException
- Specified by:
getURI in interface org.springframework.core.io.Resource
- Throws:
IOException
getURL
public URL getURL()
throws IOException
- Specified by:
getURL in interface org.springframework.core.io.Resource
- Throws:
IOException
isOpen
public boolean isOpen()
- Specified by:
isOpen in interface org.springframework.core.io.Resource
isReadable
public boolean isReadable()
- Specified by:
isReadable in interface org.springframework.core.io.Resource
lastModified
public long lastModified()
throws IOException
- Specified by:
lastModified in interface org.springframework.core.io.Resource
- Throws:
IOException
Copyright © 2012 Jasig. All Rights Reserved.