public class SpringWritableResourceWrapper extends SpringResourceWrapper implements WritableResource
WritableResource
to a pac4j WritableResource
.springResource
Constructor and Description |
---|
SpringWritableResourceWrapper(org.springframework.core.io.Resource springResource) |
Modifier and Type | Method and Description |
---|---|
OutputStream |
getOutputStream()
Return an
OutputStream for the underlying resource, allowing to
(over-)write its content. |
exists, getFilename, getInputStream
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exists, getFilename, getInputStream
public SpringWritableResourceWrapper(org.springframework.core.io.Resource springResource)
public OutputStream getOutputStream() throws IOException
WritableResource
OutputStream
for the underlying resource, allowing to
(over-)write its content.
Caller is responsible for closing the streamgetOutputStream
in interface WritableResource
null
)IOException
- if the stream could not be openedResource.getInputStream()
Copyright © 2016. All rights reserved.