|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.OutputStream net.sf.basedb.core.plugin.ExportOutputStream net.sf.basedb.util.FileExportOutputStream
public class FileExportOutputStream
An extension to the ExportOutputStream
class which
directs the output to a File
in BASE.
ImmediateDownloadExporter
Field Summary | |
---|---|
private File |
file
|
private boolean |
ignoreFilename
|
Constructor Summary | |
---|---|
FileExportOutputStream(File file,
boolean ignoreFilename)
Create a new export stream that writes the exported data to a file in the BASE filesystem |
Method Summary | |
---|---|
File |
getFile()
If the export stream is going to a BASE File object,
use this method to access it. |
void |
setCharacterSet(String charset)
Calls File.setCharacterSet(String) |
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) |
Methods inherited from class net.sf.basedb.core.plugin.ExportOutputStream |
---|
close, flush, write, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final File file
private final boolean ignoreFilename
Constructor Detail |
---|
public FileExportOutputStream(File file, boolean ignoreFilename)
file
- The file to write toignoreFilename
- If calls to the setFilename(String)
should be ignored or notMethod Detail |
---|
public 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)
File.setCharacterSet(String)
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
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |