|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.unkrig.commons.io.LineUtil
public final class LineUtil
Various utility methods for processing lines in streams.
| Method Summary | |
|---|---|
static ConsumerWhichThrows<java.lang.String,java.io.IOException> |
lineConsumerISO8859_1(java.io.OutputStream out)
Writes the consumed strings as lines to the ISO 8859-1-encoded OutputStream. |
static ProducerWhichThrows<java.lang.String,java.io.IOException> |
lineProducer(java.io.Reader r)
Produces lines from a Reader. |
static ProducerWhichThrows<java.lang.String,java.io.IOException> |
lineProducerISO8859_1(java.io.InputStream in)
Produces lines from a ISO 8859-1-encoded InputStream. |
static ProducerWhichThrows<java.lang.String,java.io.IOException> |
readLineWithSeparator(java.io.Reader r)
Similar to BufferedReader.readLine(), except that
The produced strings include the line separator
Not only CR, LF and CRLF are recognized as line terminators, but also some other special characters, as
described here
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ProducerWhichThrows<java.lang.String,java.io.IOException> lineProducerISO8859_1(java.io.InputStream in)
InputStream.
public static ProducerWhichThrows<java.lang.String,java.io.IOException> lineProducer(java.io.Reader r)
Reader.
public static ProducerWhichThrows<java.lang.String,java.io.IOException> readLineWithSeparator(java.io.Reader r)
BufferedReader.readLine(), except that
r - The source of characters
null at end-of-inputpublic static ConsumerWhichThrows<java.lang.String,java.io.IOException> lineConsumerISO8859_1(java.io.OutputStream out)
OutputStream.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||