Package liquibase.io
Class EmptyLineAndCommentSkippingInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.BufferedInputStream
liquibase.io.EmptyLineAndCommentSkippingInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
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.-
Field Summary
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
ConstructorDescriptionEmptyLineAndCommentSkippingInputStream
(InputStream in, String commentLineStartsWith) Creates Input stream that does not read (skips) lines starting withcommentLineStartsWith
-
Method Summary
Methods inherited from class java.io.BufferedInputStream
available, close, mark, markSupported, read, reset, skip
Methods inherited from class java.io.FilterInputStream
read
-
Field Details
-
MAX_CHAR_SIZE_IN_BYTES
public static final int MAX_CHAR_SIZE_IN_BYTES- See Also:
-
-
Constructor Details
-
EmptyLineAndCommentSkippingInputStream
Creates Input stream that does not read (skips) lines starting withcommentLineStartsWith
- Parameters:
in
- original input streamcommentLineStartsWith
- comment line pattern (if empty or null, comments will not be enabled)
-
-
Method Details
-
read
- Overrides:
read
in classBufferedInputStream
- Throws:
IOException
-