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
FieldsFields inherited from class java.io.FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionEmptyLineAndCommentSkippingInputStream(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, skipMethods inherited from class java.io.FilterInputStream
readMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
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:
readin classBufferedInputStream- Throws:
IOException
-