liquibase.io
Class EmptyLineAndCommentSkippingInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.BufferedInputStream
liquibase.io.EmptyLineAndCommentSkippingInputStream
- All Implemented Interfaces:
- Closeable
public class EmptyLineAndCommentSkippingInputStream
- extends BufferedInputStream
Input stream that does not read (skips) lines starting with commentPattern
and line endings.
read()
method will not return either line endings or commented lines.
Method Summary |
int |
read()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_CHAR_SIZE_IN_BYTES
public static final int MAX_CHAR_SIZE_IN_BYTES
- See Also:
- Constant Field Values
EmptyLineAndCommentSkippingInputStream
public EmptyLineAndCommentSkippingInputStream(InputStream in,
String commentLineStartsWith)
- Creates Input stream that does not read (skips) lines starting with
commentLineStartsWith
- Parameters:
in
- original input streamcommentLineStartsWith
- comment line pattern (if empty or null, comments will not be enabled)
read
public int read()
throws IOException
- Overrides:
read
in class BufferedInputStream
- Throws:
IOException
Copyright © 2016 Liquibase.org. All rights reserved.