Class MavenOutputStream
java.lang.Object
java.io.OutputStream
org.mybatis.maven.mvnmigrate.util.MavenOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
A custom
OutputStream.
Writes all complete line (ended with \n character) to a maven logger.
-
Constructor Summary
ConstructorsConstructorDescriptionMavenOutputStream(org.apache.maven.plugin.logging.Log log) Creates a new instance ofMavenOutputStream. -
Method Summary
Methods inherited from class java.io.OutputStream
close, nullOutputStream
-
Constructor Details
-
MavenOutputStream
public MavenOutputStream(org.apache.maven.plugin.logging.Log log) Creates a new instance ofMavenOutputStream.- Parameters:
log- the maven logger L
-
-
Method Details
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-