|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.io.Writer
java.io.FilterWriter
org.geotools.io.ExpandedTabWriter
Writes characters to a stream while expanding
tabs ('\t') into spaces.
| Field Summary |
| Fields inherited from class java.io.FilterWriter |
out |
| Fields inherited from class java.io.Writer |
lock |
| Constructor Summary | |
ExpandedTabWriter(java.io.Writer out)
Constructs a filter which replaces tab characters ( '\t')
with spaces. |
|
ExpandedTabWriter(java.io.Writer out,
int tabWidth)
Constructs a filter which replaces tab characters ( '\t')
with spaces, using the specified tab width. |
|
| Method Summary | |
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(java.lang.String string,
int offset,
int length)
Writes a portion of a string. |
| 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, toString, wait, wait, wait |
| Constructor Detail |
public ExpandedTabWriter(java.io.Writer out)
'\t')
with spaces. Tab widths default to 8 characters.
out - a Writer object to provide the underlying stream.
public ExpandedTabWriter(java.io.Writer out,
int tabWidth)
throws java.lang.IllegalArgumentException
'\t')
with spaces, using the specified tab width.
out - a Writer object to provide the underlying stream.tabWidth - The tab width. Must be greater than 0.
java.lang.IllegalArgumentException - if
is not greater than 0.| Method Detail |
public void setTabWidth(int tabWidth)
throws java.lang.IllegalArgumentException
tabWidth - The tab width. Must be greater than 0.
java.lang.IllegalArgumentException - if
is not greater than 0.public int getTabWidth()
public void write(int c)
throws java.io.IOException
java.io.IOException - If an I/O error occurs
public void write(char[] buffer,
int offset,
int length)
throws java.io.IOException
buffer - Buffer of characters to be writtenoffset - Offset from which to start reading characterslength - Number of characters to be written
java.io.IOException - If an I/O error occurs
public void write(java.lang.String string,
int offset,
int length)
throws java.io.IOException
string - String to be writtenoffset - Offset from which to start reading characterslength - Number of characters to be written
java.io.IOException - If an I/O error occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||