|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zhtml.Filedownload
public class Filedownload
File download utilities.
| Constructor Summary | |
|---|---|
Filedownload()
|
|
| Method Summary | |
|---|---|
static void |
save(byte[] content,
java.lang.String contentType,
java.lang.String flnm)
Open a download dialog to save the specified content at the client with the suggested file name. |
static void |
save(java.io.InputStream content,
java.lang.String contentType,
java.lang.String flnm)
Open a download dialog to save the specified content at the client with the suggested file name. |
static void |
save(Media media)
Open a download dialog to save the specified content at the client. |
static void |
save(Media media,
java.lang.String flnm)
Open a download dialog to save the specified content at the client with the suggested file name. |
static void |
save(java.io.Reader content,
java.lang.String contentType,
java.lang.String flnm)
Open a download dialog to save the specified content at the client with the suggested file name. |
static void |
save(java.lang.String content,
java.lang.String contentType,
java.lang.String flnm)
Open a download dialog to save the specified content at the client with the suggested file name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Filedownload()
| Method Detail |
|---|
public static void save(Media media)
public static void save(Media media,
java.lang.String flnm)
media - the media to downloadflnm - the suggested file name, e.g., myfile.pdf.
If null, Media.getName() is assumed.
public static void save(byte[] content,
java.lang.String contentType,
java.lang.String flnm)
content - the contentcontentType - the content type (a.k.a., MIME type),
e.g., application/pdfflnm - the suggested file name, e.g., myfile.pdf.
If null, no suggested name is provided.
public static void save(java.lang.String content,
java.lang.String contentType,
java.lang.String flnm)
content - the contentcontentType - the content type (a.k.a., MIME type),
e.g., application/pdfflnm - the suggested file name, e.g., myfile.pdf.
If null, no suggested name is provided.
public static void save(java.io.InputStream content,
java.lang.String contentType,
java.lang.String flnm)
content - the contentcontentType - the content type (a.k.a., MIME type),
e.g., application/pdfflnm - the suggested file name, e.g., myfile.pdf.
If null, no suggested name is provided.
public static void save(java.io.Reader content,
java.lang.String contentType,
java.lang.String flnm)
content - the contentcontentType - the content type (a.k.a., MIME type),
e.g., application/pdfflnm - the suggested file name, e.g., myfile.pdf.
If null, no suggested name is provided.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||