public class EmptyLineAndCommentSkippingInputStream extends BufferedInputStream
commentPattern and line endings.
read() method will not return either line endings or commented lines.| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_CHAR_SIZE_IN_BYTES |
in| Constructor and Description |
|---|
EmptyLineAndCommentSkippingInputStream(InputStream in,
String commentLineStartsWith)
Creates Input stream that does not read (skips) lines starting with
commentLineStartsWith |
| Modifier and Type | Method and Description |
|---|---|
int |
read() |
available, close, mark, markSupported, read, reset, skipreadpublic static final int MAX_CHAR_SIZE_IN_BYTES
public EmptyLineAndCommentSkippingInputStream(InputStream in, String commentLineStartsWith)
commentLineStartsWithin - original input streamcommentLineStartsWith - comment line pattern (if empty or null, comments will not be enabled)public int read()
throws IOException
read in class BufferedInputStreamIOExceptionCopyright © 2018 Liquibase.org. All rights reserved.