Package org.apereo.cas.util.io
Class TemporaryFileSystemResource
- java.lang.Object
-
- org.springframework.core.io.AbstractResource
-
- org.springframework.core.io.FileSystemResource
-
- org.apereo.cas.util.io.TemporaryFileSystemResource
-
- All Implemented Interfaces:
org.springframework.core.io.InputStreamSource,org.springframework.core.io.Resource,org.springframework.core.io.WritableResource
public class TemporaryFileSystemResource extends org.springframework.core.io.FileSystemResourceThis isTemporaryFileSystemResource.- Since:
- 6.0.0
-
-
Constructor Summary
Constructors Constructor Description TemporaryFileSystemResource(java.io.File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStreamgetInputStream()booleanisFile()java.nio.channels.ReadableByteChannelreadableChannel()-
Methods inherited from class org.springframework.core.io.FileSystemResource
contentLength, createRelative, equals, exists, getDescription, getFile, getFilename, getOutputStream, getPath, getURI, getURL, hashCode, isReadable, isWritable, lastModified, writableChannel
-
Methods inherited from class org.springframework.core.io.AbstractResource
getFileForLastModifiedCheck, isOpen, toString
-
-
-
-
Method Detail
-
readableChannel
public java.nio.channels.ReadableByteChannel readableChannel() throws java.io.IOException- Specified by:
readableChannelin interfaceorg.springframework.core.io.Resource- Overrides:
readableChannelin classorg.springframework.core.io.FileSystemResource- Throws:
java.io.IOException
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException- Specified by:
getInputStreamin interfaceorg.springframework.core.io.InputStreamSource- Overrides:
getInputStreamin classorg.springframework.core.io.FileSystemResource- Throws:
java.io.IOException
-
isFile
public boolean isFile()
- Specified by:
isFilein interfaceorg.springframework.core.io.Resource- Overrides:
isFilein classorg.springframework.core.io.FileSystemResource
-
-