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 intavailable()voidclose()voidmark(int readLimit)booleanmarkSupported()intread()voidreset()-
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:
readin classInputStream- Throws:
IOException
-
available
public int available() throws IOException- Overrides:
availablein classInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()
- Overrides:
markSupportedin classInputStream
-
mark
public void mark(int readLimit)
- Overrides:
markin classInputStream
-
reset
public void reset() throws IOException- Overrides:
resetin classInputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
-