net.jangaroo.jooc
Class JsStringLiteralWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.FilterWriter
          extended by net.jangaroo.jooc.SubstitutingWriter
              extended by net.jangaroo.jooc.JsStringLiteralWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class JsStringLiteralWriter
extends SubstitutingWriter

Author:
Andreas Gawecki

Field Summary
protected  boolean insideScriptTag
           
 
Fields inherited from class java.io.FilterWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
JsStringLiteralWriter(Writer out, boolean insideScriptTag)
           
 
Method Summary
 void beginString()
           
 void endString()
           
protected  String substitute(char ch)
          What should be printed instead of character c?
 
Methods inherited from class net.jangaroo.jooc.SubstitutingWriter
write, write, write, writeReplacement
 
Methods inherited from class java.io.FilterWriter
close, flush
 
Methods inherited from class java.io.Writer
append, append, append, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

insideScriptTag

protected boolean insideScriptTag
Constructor Detail

JsStringLiteralWriter

public JsStringLiteralWriter(Writer out,
                             boolean insideScriptTag)
Method Detail

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–2014 CoreMedia AG. All rights reserved.