Class CopyDataToClipboardAsTextOutputStream
java.lang.Object
java.io.OutputStream
au.net.causal.maven.plugins.jgitcrypt.CopyDataToClipboardAsTextOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
An output stream that saves its content to the user clipboard as text when closed.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a clipboard output stream. -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
CopyDataToClipboardAsTextOutputStream
Creates a clipboard output stream.- Parameters:
charset- the character set used to decode byte data written to this stream when copying to the clipboard as a string.
-
-
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
-
close
Closes the stream and saves any content written to it to the clipboard.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException- if an I/O error occurs.
-