|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apertereports.util.FileStreamer
public class FileStreamer
A utility class that handles opening of a new window with a report stream.
| Constructor Summary | |
|---|---|
FileStreamer()
|
|
| Method Summary | |
|---|---|
static void |
openFileInCurrentWindow(com.vaadin.Application application,
String filename,
byte[] reportContent,
String mimeType)
Starts download in current window with provided content. |
static void |
openFileInNewWindow(com.vaadin.Application app,
String fileName,
byte[] fileContent,
String mimeType)
Opens a new download window with provided content. |
static void |
showFile(com.vaadin.Application app,
String reportName,
byte[] report,
String format)
Opens a new download window with provided content. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileStreamer()
| Method Detail |
|---|
public static void openFileInNewWindow(com.vaadin.Application app,
String fileName,
byte[] fileContent,
String mimeType)
app - The applicationfileName - The filename linked with the contentfileContent - The contentmimeType - The exact mime type of the content
public static void showFile(com.vaadin.Application app,
String reportName,
byte[] report,
String format)
app - The applicationreportName - The name of the reportreport - The report contentformat - The format of the report (i.e. PDF)
public static void openFileInCurrentWindow(com.vaadin.Application application,
String filename,
byte[] reportContent,
String mimeType)
app - The applicationreportName - The name of the reportreport - The report contentformat - The format of the report (i.e. PDF)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||