biz.hammurapi.eval
Class ExpandingFilterWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.FilterWriter
          extended by biz.hammurapi.eval.ExpandingFilterWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

public class ExpandingFilterWriter
extends java.io.FilterWriter

Version:
$Revision$
Author:
Pavel Vlasov

Field Summary
static java.lang.String PRAGMA_START
           
static java.lang.String PRAGMA_STOP
          When pragma:stop token is encountered subsequent characters are not expanded until pragma:start token is encountered.
 
Fields inherited from class java.io.FilterWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
  ExpandingFilterWriter(java.io.Writer out, Context context)
           
protected ExpandingFilterWriter(java.io.Writer out, Context context, java.util.Set keySet)
           
 
Method Summary
 void close()
           
static java.io.Reader expand(java.io.Reader reader, Context context)
           
static java.lang.String expandToString(java.io.Reader reader, Context context)
           
 void write(char[] cbuf, int off, int len)
           
 void write(int c)
           
 void write(java.lang.String str, int off, int len)
           
 
Methods inherited from class java.io.FilterWriter
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

PRAGMA_STOP

public static final java.lang.String PRAGMA_STOP
When pragma:stop token is encountered subsequent characters are not expanded until pragma:start token is encountered. pragma:start and pragma:stop are not output to filtered writer.

See Also:
Constant Field Values

PRAGMA_START

public static final java.lang.String PRAGMA_START
See Also:
Constant Field Values
Constructor Detail

ExpandingFilterWriter

public ExpandingFilterWriter(java.io.Writer out,
                             Context context)

ExpandingFilterWriter

protected ExpandingFilterWriter(java.io.Writer out,
                                Context context,
                                java.util.Set keySet)
Method Detail

write

public void write(int c)
           throws java.io.IOException
Overrides:
write in class java.io.FilterWriter
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.FilterWriter
Throws:
java.io.IOException

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws java.io.IOException
Overrides:
write in class java.io.FilterWriter
Throws:
java.io.IOException

write

public void write(java.lang.String str,
                  int off,
                  int len)
           throws java.io.IOException
Overrides:
write in class java.io.FilterWriter
Throws:
java.io.IOException

expand

public static java.io.Reader expand(java.io.Reader reader,
                                    Context context)
                             throws java.io.IOException
Throws:
java.io.IOException

expandToString

public static java.lang.String expandToString(java.io.Reader reader,
                                              Context context)
                                       throws java.io.IOException
Parameters:
reader -
context -
Returns:
Throws:
java.io.IOException


Copyright © 2003 Hammurapi Group. All Rights Reserved.