Class TeeWriter
java.lang.Object
java.io.Writer
io.github.ascopes.protobufmavenplugin.utils.TeeWriter
- All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable
A writer that also writes to an in-memory buffer to enable the content to be replayed.
- Since:
- 2.7.2
- Author:
- Ashley Scopes
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TeeWriter
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Specified by:
flushin classWriter- Throws:
IOException
-
toString
-
write
- Specified by:
writein classWriter- Throws:
IOException
-