Package com.redis.riot.core.resource
Class OutputStreamResource
- java.lang.Object
-
- org.springframework.core.io.AbstractResource
-
- com.redis.riot.core.resource.OutputStreamResource
-
- All Implemented Interfaces:
org.springframework.core.io.InputStreamSource,org.springframework.core.io.Resource,org.springframework.core.io.WritableResource
public class OutputStreamResource extends org.springframework.core.io.AbstractResource implements org.springframework.core.io.WritableResource
-
-
Constructor Summary
Constructors Constructor Description OutputStreamResource(java.io.OutputStream outStream, java.lang.String filename, java.lang.String desc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetDescription()java.lang.StringgetFilename()java.io.InputStreamgetInputStream()java.io.OutputStreamgetOutputStream()inthashCode()booleanisWritable()-
Methods inherited from class org.springframework.core.io.AbstractResource
contentLength, createRelative, exists, getFile, getFileForLastModifiedCheck, getURI, getURL, isFile, isOpen, isReadable, lastModified, readableChannel, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getOutputStream
public java.io.OutputStream getOutputStream() throws java.io.IOException- Specified by:
getOutputStreamin interfaceorg.springframework.core.io.WritableResource- Throws:
java.io.IOException
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin interfaceorg.springframework.core.io.Resource
-
getFilename
public java.lang.String getFilename()
- Specified by:
getFilenamein interfaceorg.springframework.core.io.Resource- Overrides:
getFilenamein classorg.springframework.core.io.AbstractResource
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException- Specified by:
getInputStreamin interfaceorg.springframework.core.io.InputStreamSource- Throws:
java.io.IOException
-
isWritable
public boolean isWritable()
- Specified by:
isWritablein interfaceorg.springframework.core.io.WritableResource
-
hashCode
public int hashCode()
- Overrides:
hashCodein classorg.springframework.core.io.AbstractResource
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classorg.springframework.core.io.AbstractResource
-
-