|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.Writer
java.io.PrintWriter
org.xwiki.portlet.util.StringServletPrintWriter
public class StringServletPrintWriter
Class used to write the servlet response in a string.
| Field Summary |
|---|
| Fields inherited from class java.io.PrintWriter |
|---|
out |
| Fields inherited from class java.io.Writer |
|---|
lock |
| Constructor Summary | |
|---|---|
StringServletPrintWriter()
Creates a new print writer that writes the servlet response content in a string. |
|
| Method Summary | |
|---|---|
void |
close()
|
InputStream |
toInputStream(String encoding)
|
Reader |
toReader()
|
| Methods inherited from class java.io.PrintWriter |
|---|
append, append, append, checkError, clearError, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringServletPrintWriter()
| Method Detail |
|---|
public InputStream toInputStream(String encoding)
throws UnsupportedEncodingException
encoding - the encoding used to convert characters to bytes
UnsupportedEncodingException - if the specified encoding is not supportedpublic Reader toReader()
public void close()
close in interface Closeableclose in class PrintWriter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||