| Constructor and Description |
|---|
SpringResource(org.springframework.core.io.Resource resource) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(Action<OutputStream> arg0) |
long |
getLastModified() |
String |
getName() |
String |
getQualifiedPath() |
org.springframework.core.io.Resource |
getResource()
Gets the underlying spring
Resource
object. |
long |
getSize() |
boolean |
isExists() |
boolean |
isReadOnly() |
InputStream |
read() |
void |
read(Action<InputStream> action) |
<E> E |
read(Func<InputStream,E> func) |
void |
write(Action<OutputStream> arg0) |
public SpringResource(org.springframework.core.io.Resource resource)
public void append(Action<OutputStream> arg0) throws ResourceException
append in interface ResourceResourceExceptionpublic long getLastModified()
getLastModified in interface Resourcepublic String getName()
public String getQualifiedPath()
getQualifiedPath in interface Resourcepublic boolean isReadOnly()
isReadOnly in interface Resourcepublic InputStream read() throws ResourceException
read in interface ResourceResourceExceptionpublic void read(Action<InputStream> action) throws ResourceException
read in interface ResourceResourceExceptionpublic <E> E read(Func<InputStream,E> func) throws ResourceException
read in interface ResourceResourceExceptionpublic void write(Action<OutputStream> arg0) throws ResourceException
write in interface ResourceResourceExceptionpublic org.springframework.core.io.Resource getResource()
Resource
object.Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.