|
CubeTwister 2.0alpha142 2012-02-11 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.Writer java.io.FilterWriter ch.randelshofer.io.LFWriter
public class LFWriter
A character-output stream that converts line terminators into a configurable line separator sequence.mbers. A line is considered to be terminated by any one of a line feed ('\n'), a carriage return ('\r'), or a carriage return followed immediately by a linefeed.
Field Summary |
---|
Fields inherited from class java.io.FilterWriter |
---|
out |
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
LFWriter(java.io.Writer out)
Create a new line-numbering writer. |
|
LFWriter(java.io.Writer out,
java.lang.String lineSeparator)
Create a new line-numbering writer. |
Method Summary | |
---|---|
java.lang.String |
getLineSeparator()
Gets the line separator of the println() methods. |
void |
setLineSeparator(java.lang.String lineSeparator)
Sets the line separator for the println() methods. |
void |
write(char[] cbuf,
int off,
int len)
Write a portion of an array of characters. |
void |
write(int c)
Write a single character. |
void |
write(java.lang.String str,
int off,
int len)
Write a portion of a string. |
Methods inherited from class java.io.FilterWriter |
---|
close, flush |
Methods inherited from class java.io.Writer |
---|
append, append, append, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LFWriter(java.io.Writer out)
public LFWriter(java.io.Writer out, java.lang.String lineSeparator)
Method Detail |
---|
public java.lang.String getLineSeparator()
public void setLineSeparator(java.lang.String lineSeparator)
public void write(int c) throws java.io.IOException
write
in class java.io.FilterWriter
java.io.IOException
- If an I/O error occurspublic void write(char[] cbuf, int off, int len) throws java.io.IOException
write
in class java.io.FilterWriter
cbuf
- Buffer of characters to be writtenoff
- Offset from which to start reading characterslen
- Number of characters to be written
java.io.IOException
- If an I/O error occurspublic void write(java.lang.String str, int off, int len) throws java.io.IOException
write
in class java.io.FilterWriter
str
- String to be writtenoff
- Offset from which to start reading characterslen
- Number of characters to be written
java.io.IOException
- If an I/O error occurs
|
(c) Werner Randelshofer. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |