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
FileSupportcreateFile in interface FileSupport<E extends Exception>inputStream - a binary stream of dataE extends ExceptionFileSupport.createFile(java.io.InputStream)public File createFile(Reader reader) throws E extends Exception
FileSupportcreateFile in interface FileSupport<E extends Exception>reader - a character stream of dataE extends ExceptionFileSupport.createFile(java.io.Reader)public Reader getReader(File file) throws E extends Exception
FileSupportgetReader in interface FileSupport<E extends Exception>file - a temp fileE extends ExceptionFileSupport.getReader(java.io.File)public InputStream getInputStream(File file) throws E extends Exception
FileSupportgetInputStream in interface FileSupport<E extends Exception>file - a temp fileE extends ExceptionFileSupport.getInputStream(java.io.File)public void close()
close in interface Closeableclose in interface AutoCloseableCloseable.close()Copyright © 2004–2014 Paul Ferraro. All rights reserved.