public class JsStringLiteralWriter extends SubstitutingWriter
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
insideScriptTag |
out| Constructor and Description |
|---|
JsStringLiteralWriter(Writer out,
boolean insideScriptTag) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginString() |
void |
endString() |
protected String |
substitute(char ch)
What should be printed instead of character
c?
This method is always called synchronized on out. |
write, write, write, writeReplacementclose, flushpublic JsStringLiteralWriter(Writer out, boolean insideScriptTag)
protected String substitute(char ch)
SubstitutingWriterc?
This method is always called synchronized on out.
Changes to the substitution function should therefore also be synchronized on out.substitute in class SubstitutingWriterch - the charactercpublic void beginString()
throws IOException
IOExceptionpublic void endString()
throws IOException
IOExceptionCopyright © 2002–2020 CoreMedia AG. All rights reserved.