Class Base45OutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.apache.commons.codec.binary.BaseNCodecOutputStream<Base45, Base45OutputStream, Base45OutputStream.Builder>
org.apache.commons.codec.binary.Base45OutputStream
- All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
public class Base45OutputStream
extends BaseNCodecOutputStream<Base45, Base45OutputStream, Base45OutputStream.Builder>
Provides RFC 9285 Base45 encoding in a streaming fashion (unlimited size).
Note: Call BaseNCodecOutputStream.close() or BaseNCodecOutputStream.eof() after the last byte has been written; otherwise the final
partial block will be omitted and the resulting data will be incomplete.
- Since:
- 1.23.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilds instances of Base45OutputStream.Nested classes/interfaces inherited from class BaseNCodecOutputStream
BaseNCodecOutputStream.AbstractBuilder<T,C, B> -
Field Summary
Fields inherited from class FilterOutputStream
out -
Constructor Summary
ConstructorsConstructorDescriptionBase45OutputStream(OutputStream outputStream) Constructs a Base45OutputStream such that all data written is Base45-encoded to the original provided OutputStream. -
Method Summary
Modifier and TypeMethodDescriptionstatic Base45OutputStream.Builderbuilder()Constructs a new Builder.Methods inherited from class BaseNCodecOutputStream
close, eof, flush, isStrictDecoding, write, writeMethods inherited from class FilterOutputStream
write
-
Constructor Details
-
Base45OutputStream
Constructs a Base45OutputStream such that all data written is Base45-encoded to the original provided OutputStream.- Parameters:
outputStream- OutputStream to wrap.
-
-
Method Details
-
builder
Constructs a new Builder.- Returns:
- A new Builder.
-