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
ConstructorDescriptionMavenOutputStream
(org.apache.maven.plugin.logging.Log log) Creates a new instance ofMavenOutputStream
. -
Method Summary
Methods inherited from class java.io.OutputStream
close
-
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:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-