public class FileExportOutputStream extends ExportOutputStream
ExportOutputStream
class which
directs the output to a File
in BASE.ImmediateDownloadExporter
Modifier and Type | Field and Description |
---|---|
private File |
file |
private boolean |
ignoreFilename |
Constructor and Description |
---|
FileExportOutputStream(File file,
boolean ignoreFilename)
Create a new export stream that writes the exported data to
a file in the BASE filesystem
|
Modifier and Type | Method and Description |
---|---|
File |
getFile()
If the export stream is going to a BASE
File object,
use this method to access it. |
void |
setCharacterSet(String charset)
|
void |
setContentLength(long contentLength)
Ignored.
|
void |
setFilename(String filename)
Calls
File.setName(String) unless file names should
be ignored. |
void |
setMimeType(String mimeType)
Calls
File.setMimeType(String) |
private final File file
private final boolean ignoreFilename
public FileExportOutputStream(File file, boolean ignoreFilename)
file
- The file to write toignoreFilename
- If calls to the setFilename(String)
should be ignored or notpublic void setContentLength(long contentLength)
setContentLength
in class ExportOutputStream
public void setMimeType(String mimeType)
File.setMimeType(String)
setMimeType
in class ExportOutputStream
public void setCharacterSet(String charset)
setCharacterSet
in class ExportOutputStream
public void setFilename(String filename)
File.setName(String)
unless file names should
be ignored.setFilename
in class ExportOutputStream
public File getFile()
ExportOutputStream
File
object,
use this method to access it. This class always return null,
subclasses may override this method.getFile
in class ExportOutputStream