Package liquibase.changelog
Class PropertyExpandingStream
- java.lang.Object
-
- java.io.InputStream
-
- liquibase.changelog.PropertyExpandingStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class PropertyExpandingStream extends InputStream
-
-
Constructor Summary
Constructors Constructor Description PropertyExpandingStream(ChangeSet changeSet, InputStream stream)
This method will read the content of the given stream and make any parameter update on the content.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
available()
void
close()
void
mark(int readLimit)
boolean
markSupported()
int
read()
void
reset()
-
Methods inherited from class java.io.InputStream
read, read, skip
-
-
-
-
Constructor Detail
-
PropertyExpandingStream
public PropertyExpandingStream(ChangeSet changeSet, InputStream stream)
This method will read the content of the given stream and make any parameter update on the content. For example, making a property replacement into procedure text read from the sql file.- Parameters:
stream
-
-
-
Method Detail
-
read
public int read() throws IOException
- Specified by:
read
in classInputStream
- Throws:
IOException
-
available
public int available() throws IOException
- Overrides:
available
in classInputStream
- Throws:
IOException
-
markSupported
public boolean markSupported()
- Overrides:
markSupported
in classInputStream
-
mark
public void mark(int readLimit)
- Overrides:
mark
in classInputStream
-
reset
public void reset() throws IOException
- Overrides:
reset
in classInputStream
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
-