X - The type of data writtenpublic abstract class WebFormatWriter<X> extends java.lang.Object implements FormatWriter<X>
| Constructor and Description |
|---|
WebFormatWriter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContentType()
Get the content type generated by this writer.
|
java.lang.String |
getDestination()
Get the destination for this writer, if set.
|
protected java.io.Writer |
getWriter()
Get the current writer for this FormatWriter
|
void |
setDestination(java.lang.String destination)
Set the destination for this writer.
|
void |
setWriter(java.io.Writer writer)
Sets the internal writer, specifying the output destination.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, writeDatapublic java.lang.String getContentType()
public java.lang.String getDestination()
getDestination in interface FormatWriter<X>protected java.io.Writer getWriter()
public void setDestination(java.lang.String destination)
throws java.io.IOException
setDestination in interface FormatWriter<X>destination - the destination for this writer.java.io.IOException - if there is a problem writing to the specified filepublic void setWriter(java.io.Writer writer)
writer - the new internal writer