groovy.io
[Java] Class PlatformLineWriter
java.lang.Object
java.io.Writer
groovy.io.PlatformLineWriter
public class PlatformLineWriter
extends Writer
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.
- Authors:
- Paul King
Method Summary |
void
|
close()
|
void
|
flush()
|
void
|
write(char[] cbuf, int off, int len)
|
Methods inherited from class Writer
|
append, append, append, append, append, append, write, write, write, write, write, close, flush, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
PlatformLineWriter
public PlatformLineWriter(Writer out)
-
PlatformLineWriter
public PlatformLineWriter(Writer out, int sz)
-
close
public void close()
-
flush
public void flush()
-
write
public void write(char[] cbuf, int off, int len)
-
Copyright © 2003-2013 The Codehaus. All rights reserved.