net.jangaroo.jooc
Class JsStringLiteralWriter
java.lang.Object
java.io.Writer
java.io.FilterWriter
net.jangaroo.jooc.SubstitutingWriter
net.jangaroo.jooc.JsStringLiteralWriter
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
public class JsStringLiteralWriter
- extends SubstitutingWriter
- Author:
- Andreas Gawecki
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
insideScriptTag
protected boolean insideScriptTag
JsStringLiteralWriter
public JsStringLiteralWriter(Writer out,
boolean insideScriptTag)
substitute
protected String substitute(char ch)
- Description copied from class:
SubstitutingWriter
- What should be printed instead of character
c?
This method is always called synchronized on out.
Changes to the substitution function should therefore also be synchronized on out.
- Specified by:
substitute in class SubstitutingWriter
- Parameters:
ch - the character
- Returns:
- the string to be printed, or null for "no change", i.e. just
c
beginString
public void beginString()
throws IOException
- Throws:
IOException
endString
public void endString()
throws IOException
- Throws:
IOException
Copyright © 2002-2013 CoreMedia AG. All Rights Reserved.