|
Groovy 1.7.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Writer
java.io.BufferedWriter
groovy.io.PlatformLineWriter
class PlatformLineWriter extends BufferedWriter
A buffered writer that gobbles any \r characters and replaces every \n with a platform specific newline. In many places Groovy normalises streams to only have \n characters but when creating files that must be used by other platform-aware tools, you sometimes want the newlines to match what the platform expects.
Constructor Summary | |
PlatformLineWriter(Writer out)
|
|
PlatformLineWriter(Writer out, int sz)
|
Method Summary | |
---|---|
void
|
close()
|
void
|
flush()
|
void
|
write(char[] cbuf, int off, int len)
|
Methods inherited from class BufferedWriter | |
---|---|
write, write, write, close, flush, newLine, append, append, append, append, append, append, write, write, wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Methods inherited from class Writer | |
---|---|
append, append, append, append, append, append, write, write, write, write, write, close, flush, wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Constructor Detail |
---|
public PlatformLineWriter(Writer out)
public PlatformLineWriter(Writer out, int sz)
Method Detail |
---|
public void close()
public void flush()
public void write(char[] cbuf, int off, int len)
Copyright © 2003-2009 The Codehaus. All rights reserved.