| java.lang.Object java.io.Writer java.io.FilterWriter org.geotools.io.ExpandedTabWriter
ExpandedTabWriter | public class ExpandedTabWriter extends FilterWriter (Code) | | Writes characters to a stream while expanding
tabs ('\t' ) into spaces.
version: $Id: ExpandedTabWriter.java 22443 2006-10-27 20:47:22Z desruisseaux $ author: Martin Desruisseaux since: 2.0 |
Constructor Summary | |
public | ExpandedTabWriter(Writer out) Constructs a filter which replaces tab characters ('\t' )
with spaces. | public | ExpandedTabWriter(Writer out, int tabWidth) Constructs a filter which replaces tab characters ('\t' )
with spaces, using the specified tab width.
Parameters: out - a Writer object to provide the underlying stream. Parameters: tabWidth - The tab width. |
Method Summary | |
public int | getTabWidth() Returns the tab width. | public void | setTabWidth(int tabWidth) Sets the tab width.
Parameters: tabWidth - The tab width. | public void | write(int c) Writes a single character. | public void | write(char[] buffer, int offset, int length) Writes a portion of an array of characters. | public void | write(String string, int offset, int length) Writes a portion of a string. |
ExpandedTabWriter | public ExpandedTabWriter(Writer out)(Code) | | Constructs a filter which replaces tab characters ('\t' )
with spaces. Tab widths default to 8 characters.
Parameters: out - a Writer object to provide the underlying stream. |
ExpandedTabWriter | public ExpandedTabWriter(Writer out, int tabWidth) throws IllegalArgumentException(Code) | | Constructs a filter which replaces tab characters ('\t' )
with spaces, using the specified tab width.
Parameters: out - a Writer object to provide the underlying stream. Parameters: tabWidth - The tab width. Must be greater than 0. throws: IllegalArgumentException - if tabWidth is not greater than 0. |
getTabWidth | public int getTabWidth()(Code) | | Returns the tab width.
|
write | public void write(char[] buffer, int offset, int length) throws IOException(Code) | | Writes a portion of an array of characters.
Parameters: buffer - Buffer of characters to be written Parameters: offset - Offset from which to start reading characters Parameters: length - Number of characters to be written throws: IOException - If an I/O error occurs |
write | public void write(String string, int offset, int length) throws IOException(Code) | | Writes a portion of a string.
Parameters: string - String to be written Parameters: offset - Offset from which to start reading characters Parameters: length - Number of characters to be written throws: IOException - If an I/O error occurs |
|
|