public interface FileSupport<E extends Throwable> extends Closeable
Closeable.close()
is called.Modifier and Type | Method and Description |
---|---|
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
|
InputStream |
getInputStream(File file)
Returns an input stream for the specified file.
|
Reader |
getReader(File file)
Returns a reader for the specified file.
|
File createFile(InputStream inputStream) throws E extends Throwable
inputStream
- a binary stream of dataSQLException
- if an IO error occursE extends Throwable
File createFile(Reader reader) throws E extends Throwable
reader
- a character stream of dataSQLException
- if an IO error occursE extends Throwable
Reader getReader(File file) throws E extends Throwable
file
- a temp fileSQLException
- if IO error occursE extends Throwable
InputStream getInputStream(File file) throws E extends Throwable
file
- a temp fileSQLException
- if IO error occursE extends Throwable
Copyright © 2004–2014 Paul Ferraro. All rights reserved.