public class FileSupportImpl<E extends Exception> extends Object implements FileSupport<E>
Constructor and Description |
---|
FileSupportImpl(ExceptionFactory<E> exceptionFactory) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
File |
createFile(InputStream inputStream)
Create a file from the specified binary input stream.
|
File |
createFile(Reader reader)
Create a file from the specified character input stream
|
protected void |
finalize() |
InputStream |
getInputStream(File file)
Returns an input stream for the specified file.
|
Reader |
getReader(File file)
Returns a reader for the specified file.
|
public FileSupportImpl(ExceptionFactory<E> exceptionFactory)
public File createFile(InputStream inputStream) throws E extends Exception
FileSupport
createFile
in interface FileSupport<E extends Exception>
inputStream
- a binary stream of dataE extends Exception
FileSupport.createFile(java.io.InputStream)
public File createFile(Reader reader) throws E extends Exception
FileSupport
createFile
in interface FileSupport<E extends Exception>
reader
- a character stream of dataE extends Exception
FileSupport.createFile(java.io.Reader)
public Reader getReader(File file) throws E extends Exception
FileSupport
getReader
in interface FileSupport<E extends Exception>
file
- a temp fileE extends Exception
FileSupport.getReader(java.io.File)
public InputStream getInputStream(File file) throws E extends Exception
FileSupport
getInputStream
in interface FileSupport<E extends Exception>
file
- a temp fileE extends Exception
FileSupport.getInputStream(java.io.File)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Closeable.close()
Copyright © 2004–2014 Paul Ferraro. All rights reserved.