Package net.sf.jasperreports.export
Class SimpleOutputStreamExporterOutput
- java.lang.Object
-
- net.sf.jasperreports.export.SimpleOutputStreamExporterOutput
-
- All Implemented Interfaces:
ExporterOutput
,OutputStreamExporterOutput
public class SimpleOutputStreamExporterOutput extends Object implements OutputStreamExporterOutput
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description SimpleOutputStreamExporterOutput(File file)
Creates aOutputStreamExporterOutput
instance that puts the result into the provided java.io.File object.SimpleOutputStreamExporterOutput(OutputStream outputStream)
Creates aOutputStreamExporterOutput
instance that puts the result into provided java.io.OutputStream object.SimpleOutputStreamExporterOutput(String fileName)
Creates aOutputStreamExporterOutput
instance that puts the result into the file designated by the provided file name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
OutputStream
getOutputStream()
-
-
-
Constructor Detail
-
SimpleOutputStreamExporterOutput
public SimpleOutputStreamExporterOutput(OutputStream outputStream)
Creates aOutputStreamExporterOutput
instance that puts the result into provided java.io.OutputStream object. This is useful for sending the export result to an output stream, such as a ServletOutputStream.
-
SimpleOutputStreamExporterOutput
public SimpleOutputStreamExporterOutput(File file)
Creates aOutputStreamExporterOutput
instance that puts the result into the provided java.io.File object. This is useful when exporting to a file and the File instance is already there.
-
SimpleOutputStreamExporterOutput
public SimpleOutputStreamExporterOutput(String fileName)
Creates aOutputStreamExporterOutput
instance that puts the result into the file designated by the provided file name. This is an alternative to theSimpleOutputStreamExporterOutput(File)
.
-
-
Method Detail
-
getOutputStream
public OutputStream getOutputStream()
- Specified by:
getOutputStream
in interfaceOutputStreamExporterOutput
-
close
public void close()
- Specified by:
close
in interfaceOutputStreamExporterOutput
-
-