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
FileSupportcreateFile in interface FileSupportinputStream - 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
FileSupportcreateFile in interface FileSupportreader - 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
FileSupportgetReader in interface FileSupportfile - 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
FileSupportgetInputStream in interface FileSupportfile - a temp filejava.sql.SQLException - if IO error occursFileSupport.getInputStream(java.io.File)public void close()
FileSupportclose in interface FileSupportFileSupport.close()protected void finalize() throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.ThrowableObject.finalize()