| java.io.StringWriter org.netbeans.modules.visualweb.jsfsupport.container.ResettableStringWriter
ResettableStringWriter | public class ResettableStringWriter extends StringWriter (Code) | | StringWriter with one additional capability: it supports querying the next output position, and
resetting the output back to a particular position. This is used to recover from errors when
generating output.
author: Tor Norbye |
Method Summary | |
public int | getPosition() Returns the index of the next character to be written to the stream, or put another way,
the number of characters since the writer was created. | public void | reset(int position) Truncates the written content back to a particular position/index specified. |
getPosition | public int getPosition()(Code) | | Returns the index of the next character to be written to the stream, or put another way,
the number of characters since the writer was created.
|
reset | public void reset(int position)(Code) | | Truncates the written content back to a particular position/index specified.
Parameters: position - The position to jump back to. |
|
|