|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.slim3.struts.util.ResponseUtil
public final class ResponseUtil
A utility for HttpServletResponse
.
Method Summary | |
---|---|
static void |
download(String fileName,
byte[] data)
Downloads the data. |
static void |
download(String fileName,
InputStream in)
Downloads the data. |
static void |
download(String fileName,
InputStream in,
int length)
Downloads the data. |
static void |
write(String text)
Writes the text to response. |
static void |
write(String text,
String contentType)
Writes the text to response. |
static void |
write(String text,
String contentType,
String encoding)
Writes the text to response. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void download(String fileName, byte[] data)
fileName
- the file namedata
- the datapublic static void download(String fileName, InputStream in)
fileName
- the file namein
- the input streampublic static void download(String fileName, InputStream in, int length)
fileName
- the file namein
- the input streamlength
- content lengthpublic static void write(String text)
text
- the textpublic static void write(String text, String contentType)
text
- the textcontentType
- the content typepublic static void write(String text, String contentType, String encoding)
text
- the textcontentType
- the content typeencoding
- the encoding
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |