public class DefinedMediaResource extends Object implements MediaResource
Modifier and Type | Method and Description |
---|---|
long |
contentLength() |
org.springframework.core.io.Resource |
createRelative(String relativePath) |
boolean |
exists() |
String |
getContentType() |
String |
getDescription() |
File |
getFile() |
String |
getFilename() |
InputStream |
getInputStream() |
String |
getName() |
URI |
getURI() |
URL |
getURL() |
boolean |
isOpen() |
boolean |
isReadable() |
long |
lastModified() |
String |
toString() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
of, of
public String getName()
getName
in interface MediaResource
public String getContentType()
getContentType
in interface MediaResource
public long contentLength()
contentLength
in interface MediaResource
contentLength
in interface org.springframework.core.io.Resource
public boolean exists()
exists
in interface org.springframework.core.io.Resource
public boolean isReadable()
isReadable
in interface org.springframework.core.io.Resource
public boolean isOpen()
isOpen
in interface org.springframework.core.io.Resource
public URL getURL() throws IOException
getURL
in interface org.springframework.core.io.Resource
IOException
public URI getURI() throws IOException
getURI
in interface org.springframework.core.io.Resource
IOException
public File getFile() throws IOException
getFile
in interface org.springframework.core.io.Resource
IOException
public long lastModified() throws IOException
lastModified
in interface org.springframework.core.io.Resource
IOException
public org.springframework.core.io.Resource createRelative(String relativePath) throws IOException
createRelative
in interface org.springframework.core.io.Resource
IOException
public String getFilename()
getFilename
in interface org.springframework.core.io.Resource
public String getDescription()
getDescription
in interface org.springframework.core.io.Resource
public InputStream getInputStream() throws IOException
getInputStream
in interface org.springframework.core.io.InputStreamSource
IOException
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.