foundry-0.9.1

foundry.io
Class EscapingWriter

java.lang.Object
  |
  +--java.io.Writer
        |
        +--java.io.FilterWriter
              |
              +--foundry.io.EscapingWriter

public class EscapingWriter
extends FilterWriter


Field Summary
private static int BUFFER_SIZE
           
private static String EMPTY_STRING
           
private  Properties escapeChars
           
private  char[] temporaryBuffer
           
 
Fields inherited from class java.io.FilterWriter
out
 
Fields inherited from class java.io.Writer
lock, writeBuffer, writeBufferSize
 
Constructor Summary
EscapingWriter(Writer delegate, char[] chars, char escapeChar)
           
EscapingWriter(Writer delegate, char[] chars, String escapeString)
           
EscapingWriter(Writer delegate, Properties charsAndEscapeTokens)
           
EscapingWriter(Writer delegate, String charsToEscape, char escapeChar)
           
EscapingWriter(Writer delegate, String charsToEscape, String escapeString)
           
 
Method Summary
 String getEscapeString(char character)
           
 String getEscapeString(char[] chars)
           
 String getEscapeString(Character character)
           
 String getEscapeString(String key)
           
 void write(char[] chars)
           
 void write(char[] chars, int startIndex, int length)
           
 void write(int character)
           
 void write(String string)
           
 void write(String string, int startIndex, int length)
           
 
Methods inherited from class java.io.FilterWriter
close, flush
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

EMPTY_STRING

private static final String EMPTY_STRING

BUFFER_SIZE

private static final int BUFFER_SIZE

temporaryBuffer

private final char[] temporaryBuffer

escapeChars

private final Properties escapeChars
Constructor Detail

EscapingWriter

public EscapingWriter(Writer delegate,
                      char[] chars,
                      String escapeString)

EscapingWriter

public EscapingWriter(Writer delegate,
                      char[] chars,
                      char escapeChar)

EscapingWriter

public EscapingWriter(Writer delegate,
                      Properties charsAndEscapeTokens)

EscapingWriter

public EscapingWriter(Writer delegate,
                      String charsToEscape,
                      char escapeChar)

EscapingWriter

public EscapingWriter(Writer delegate,
                      String charsToEscape,
                      String escapeString)
Method Detail

getEscapeString

public final String getEscapeString(Character character)

getEscapeString

public final String getEscapeString(char[] chars)

getEscapeString

public final String getEscapeString(char character)

getEscapeString

public String getEscapeString(String key)

write

public void write(int character)
           throws IOException
Overrides:
write in class FilterWriter

write

public void write(char[] chars)
           throws IOException
Overrides:
write in class Writer

write

public void write(String string)
           throws IOException
Overrides:
write in class Writer

write

public void write(String string,
                  int startIndex,
                  int length)
           throws IOException
Overrides:
write in class FilterWriter

write

public void write(char[] chars,
                  int startIndex,
                  int length)
           throws IOException
Overrides:
write in class FilterWriter

foundry-0.9.1

Copyright © 2000 - Laird Jarrett Nelson