net.sf.basedb.util
Class FileExportOutputStream
java.lang.Object
java.io.OutputStream
net.sf.basedb.core.plugin.ExportOutputStream
net.sf.basedb.util.FileExportOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class FileExportOutputStream
- extends ExportOutputStream
An extension to the ExportOutputStream
class which
directs the output to a File
in BASE.
- Version:
- 2.2
- Author:
- nicklas
- See Also:
ImmediateDownloadExporter
- Last modified
- $Date: 2008-09-05 17:16:27 +0200 (Fri, 05 Sep 2008) $
Constructor Summary |
FileExportOutputStream(File file,
boolean ignoreFilename)
Create a new export stream that writes the exported data to
a file in the BASE filesystem |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
file
private final File file
ignoreFilename
private final boolean ignoreFilename
FileExportOutputStream
public FileExportOutputStream(File file,
boolean ignoreFilename)
- Create a new export stream that writes the exported data to
a file in the BASE filesystem
- Parameters:
file
- The file to write toignoreFilename
- If calls to the setFilename(String)
should be ignored or not
setContentLength
public void setContentLength(long contentLength)
- Ignored. File size is calculated from the number of bytes written
to the file.
- Overrides:
setContentLength
in class ExportOutputStream
setMimeType
public void setMimeType(String mimeType)
- Calls
File.setMimeType(String)
- Overrides:
setMimeType
in class ExportOutputStream
setFilename
public void setFilename(String filename)
- Calls
File.setName(String)
unless file names should
be ignored.
- Overrides:
setFilename
in class ExportOutputStream