@FunctionalInterface public interface IWriteToStream
OutputStream.| Modifier and Type | Method and Description |
|---|---|
void |
writeTo(OutputStream aOS)
Write everything to the passed output stream.
|
default void |
writeToAndClose(OutputStream aOS)
Write everything to the passed output stream and close it.
|
void writeTo(@Nonnull @WillNotClose OutputStream aOS) throws IOException
aOS - The output stream to write to. May not be null. The
OutputStream must not closed by implementations of this class.IOException - In case of IO errordefault void writeToAndClose(@Nonnull @WillClose OutputStream aOS) throws IOException
aOS - The output stream to write to. May not be null.IOException - In case of IO error. Even than the OutputStream is closed!Copyright © 2014–2020 Philip Helger. All rights reserved.