foundry-0.9.1

foundry.io
Class WhiteSpaceConvertingWriter

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

public class WhiteSpaceConvertingWriter
extends FilterWriter


Field Summary
private static int BUFFER_SIZE
           
private  boolean compress
           
private  String replacement
           
private  char[] temporaryBuffer
           
 
Fields inherited from class java.io.FilterWriter
out
 
Fields inherited from class java.io.Writer
lock, writeBuffer, writeBufferSize
 
Constructor Summary
WhiteSpaceConvertingWriter(Writer delegate, String replacement, boolean compress)
           
 
Method Summary
 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

BUFFER_SIZE

private static final int BUFFER_SIZE

temporaryBuffer

private final char[] temporaryBuffer

replacement

private final String replacement

compress

private final boolean compress
Constructor Detail

WhiteSpaceConvertingWriter

public WhiteSpaceConvertingWriter(Writer delegate,
                                  String replacement,
                                  boolean compress)
Method Detail

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