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 and description |
---|
PlatformLineWriter
(Writer out) |
PlatformLineWriter
(Writer out, int sz) |
Methods inherited from class | Name |
---|---|
class Writer |
append, append, append, append, append, append, write, write, write, write, write, close, flush, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Copyright © 2003-2018 The Apache Software Foundation. All rights reserved.