public class ExpandedTabWriter extends FilterWriter
'\t') into spaces.out| Constructor and Description | 
|---|
| ExpandedTabWriter(Writer out)Constructs a filter which replaces tab characters ( '\t') by spaces. | 
| ExpandedTabWriter(Writer out,
                 int tabWidth)Constructs a filter which replaces tab characters ( '\t') by spaces, using the
 specified tab width. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getTabWidth()Returns the tab width. | 
| void | setTabWidth(int tabWidth)Sets the tab width. | 
| void | write(char[] buffer,
     int offset,
     int length)Writes a portion of an array of characters. | 
| void | write(int c)Writes a single character. | 
| void | write(String string,
     int offset,
     int length)Writes a portion of a string. | 
close, flushpublic ExpandedTabWriter(Writer out)
'\t') by spaces. Tab widths
 default to 8 characters.out - A writer object to provide the underlying stream.public ExpandedTabWriter(Writer out, int tabWidth) throws IllegalArgumentException
'\t') by spaces, using the
 specified tab width.out - A writer object to provide the underlying stream.tabWidth - The tab width. Must be greater than 0.IllegalArgumentException - if tabWidth is not greater than 0.public void setTabWidth(int tabWidth)
                 throws IllegalArgumentException
tabWidth - The tab width. Must be greater than 0.IllegalArgumentException - if tabWidth is not greater than 0.public int getTabWidth()
public void write(int c)
           throws IOException
write in class FilterWriterIOException - If an I/O error occurs.public void write(char[] buffer,
                  int offset,
                  int length)
           throws IOException
write in class FilterWriterbuffer - Buffer of characters to be writtenoffset - Offset from which to start reading characterslength - Number of characters to be writtenIOException - If an I/O error occurs.public void write(String string, int offset, int length) throws IOException
write in class FilterWriterstring - String to be writtenoffset - Offset from which to start reading characterslength - Number of characters to be writtenIOException - If an I/O error occurs.Copyright © 1996–2019 Geotools. All rights reserved.