Package org.eclipse.xtext.util
Class TailWriter
- java.lang.Object
-
- java.io.Writer
-
- org.eclipse.xtext.util.TailWriter
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.Appendable,java.lang.AutoCloseable
public class TailWriter extends java.io.WriterUsed to remove the timestamp from generated antlr parsers and lexers to prevent noise in cvs.
-
-
Constructor Summary
Constructors Constructor Description TailWriter(java.io.Writer delegate, int suppressLineCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()voidwrite(char[] cbuf, int off, int len)Filter everything until we found the first NL character.
-
-
-
Method Detail
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein classjava.io.Writer- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException- Specified by:
flushin interfacejava.io.Flushable- Specified by:
flushin classjava.io.Writer- Throws:
java.io.IOException
-
write
public void write(char[] cbuf, int off, int len) throws java.io.IOExceptionFilter everything until we found the first NL character.- Specified by:
writein classjava.io.Writer- Throws:
java.io.IOException
-
-