org.eclipse.emf.mwe2.util
Class LineFilterOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.eclipse.emf.mwe2.util.LineFilterOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class LineFilterOutputStream
- extends FilterOutputStream
Filters any line, that contains the given pattern right from the beginning.
- Author:
- Sebastian Zarnekow - Initial contribution and API
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LineFilterOutputStream
public LineFilterOutputStream(OutputStream out,
String pattern)
LineFilterOutputStream
public LineFilterOutputStream(OutputStream out,
String pattern,
String newLine)
newLine
public static String newLine()
write
public void write(int b)
throws IOException
- Overrides:
write in class FilterOutputStream
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush in interface Flushable- Overrides:
flush in class FilterOutputStream
- Throws:
IOException
Copyright © 2015. All rights reserved.