public class FileSupportImpl extends java.lang.Object implements FileSupport
Constructor and Description |
---|
FileSupportImpl() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Deletes any files created by this object.
|
java.io.File |
createFile(java.io.InputStream inputStream)
Create a file from the specified binary input stream.
|
java.io.File |
createFile(java.io.Reader reader)
Create a file from the specified character input stream
|
protected void |
finalize() |
java.io.InputStream |
getInputStream(java.io.File file)
Returns an input stream for the specified file.
|
java.io.Reader |
getReader(java.io.File file)
Returns a reader for the specified file.
|
public FileSupportImpl()
public java.io.File createFile(java.io.InputStream inputStream) throws java.sql.SQLException
FileSupport
createFile
in interface FileSupport
inputStream
- a binary stream of datajava.sql.SQLException
- if an IO error occursFileSupport.createFile(java.io.InputStream)
public java.io.File createFile(java.io.Reader reader) throws java.sql.SQLException
FileSupport
createFile
in interface FileSupport
reader
- a character stream of datajava.sql.SQLException
- if an IO error occursFileSupport.createFile(java.io.Reader)
public java.io.Reader getReader(java.io.File file) throws java.sql.SQLException
FileSupport
getReader
in interface FileSupport
file
- a temp filejava.sql.SQLException
- if IO error occursFileSupport.getReader(java.io.File)
public java.io.InputStream getInputStream(java.io.File file) throws java.sql.SQLException
FileSupport
getInputStream
in interface FileSupport
file
- a temp filejava.sql.SQLException
- if IO error occursFileSupport.getInputStream(java.io.File)
public void close()
FileSupport
close
in interface FileSupport
FileSupport.close()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
Object.finalize()