anchor.diff:  [[resources-resource]]
   == The Resource Interface
   
  -Spring's `Resource` interface is meant to be a more capable interface for abstracting
  -access to low-level resources. The following listing shows the `Resource` interface
  -definition:
  +Spring's `Resource` interface located in the `org.springframework.core.io.` package is
  +meant to be a more capable interface for abstracting access to low-level resources. The
  +following listing provides an overview of the `Resource` interface. See the
  +{api-spring-framework}/core/io/Resource.html[`Resource`] javadoc for further details.
  +
   
   [source,java,indent=0,subs="verbatim,quotes",role="primary"]
   .Java
  
positive.code: 
  		fun exists(): Boolean
  
  		val isOpen: Boolean
  
  		val url: URL
  
  		val file: File
  
  		@Throws(IOException::class)
  		fun createRelative(relativePath: String): Resource
  
negative.code: 
  		boolean exists();
  
  		boolean isReadable();
  
  		boolean isOpen();
  
  		boolean isFile();
  
  		URL getURL() throws IOException;
  
  		URI getURI() throws IOException;
  
  		File getFile() throws IOException;
  
  		ReadableByteChannel readableChannel() throws IOException;
  
  		long contentLength() throws IOException;
  
  		long lastModified() throws IOException;
  
  		Resource createRelative(String relativePath) throws IOException;
  
  		String getFilename();
  
  		String getDescription();
  
  	}
  ----
  [source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
  