Save This Page
Home » spring-framework-2.5.4 » org.springframework » core » io » [javadoc | source]
org.springframework.core.io
public class: DescriptiveResource [javadoc | source]
java.lang.Object
   org.springframework.core.io.AbstractResource
      org.springframework.core.io.DescriptiveResource

All Implemented Interfaces:
    Resource

Simple Resource implementation that holds a resource description but does not point to an actually readable resource.

To be used as placeholder if a Resource argument is expected by an API but not necessarily used for actual reading.

Constructor:
 public DescriptiveResource(String description) 
    Create a new DescriptiveResource.
    Parameters:
    description - the resource description
Method from org.springframework.core.io.DescriptiveResource Summary:
equals,   exists,   getDescription,   getInputStream,   hashCode,   isReadable
Methods from org.springframework.core.io.AbstractResource:
createRelative,   equals,   exists,   getFile,   getFileForLastModifiedCheck,   getFilename,   getURI,   getURL,   hashCode,   isOpen,   isReadable,   lastModified,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.core.io.DescriptiveResource Detail:
 public boolean equals(Object obj) 
    This implementation compares the underlying description String.
 public boolean exists() 
 public String getDescription() 
 public InputStream getInputStream() throws IOException 
 public int hashCode() 
    This implementation returns the hash code of the underlying description String.
 public boolean isReadable()