foundry-0.9.1

foundry.io
Class TabToSpaceWriter

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

public class TabToSpaceWriter
extends FilterWriter


Field Summary
private  String tabLeader
           
 
Fields inherited from class java.io.FilterWriter
out
 
Fields inherited from class java.io.Writer
lock, writeBuffer, writeBufferSize
 
Constructor Summary
TabToSpaceWriter(Writer w)
           
TabToSpaceWriter(Writer w, int howManySpaces)
           
 
Method Summary
static String convertTabsToSpaces(String source, int spaces)
           
 void write(char[] cbuf, int off, int len)
           
 void write(int c)
           
 void write(String s, int off, int len)
           
 
Methods inherited from class java.io.FilterWriter
close, flush
 
Methods inherited from class java.io.Writer
write, write
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

tabLeader

private String tabLeader
Constructor Detail

TabToSpaceWriter

public TabToSpaceWriter(Writer w)

TabToSpaceWriter

public TabToSpaceWriter(Writer w,
                        int howManySpaces)
                 throws IllegalArgumentException
Method Detail

write

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

write

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

write

public void write(String s,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class FilterWriter

convertTabsToSpaces

public static String convertTabsToSpaces(String source,
                                         int spaces)
                                  throws IOException

foundry-0.9.1

Copyright © 2000 - Laird Jarrett Nelson