Package org.apache.commons.codec.binary
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:
java.io.Closeable,java.io.Flushable,java.lang.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()orBaseNCodecOutputStream.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:
Base45, RFC 9285 – The Base45 Data Encoding
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBase45OutputStream.BuilderBuilds instances of Base45OutputStream.-
Nested classes/interfaces inherited from class org.apache.commons.codec.binary.BaseNCodecOutputStream
BaseNCodecOutputStream.AbstractBuilder<T,C extends BaseNCodec,B extends BaseNCodecOutputStream.AbstractBuilder<T,C,B>>
-
-
Constructor Summary
Constructors Constructor Description Base45OutputStream(java.io.OutputStream outputStream)Constructs a Base45OutputStream such that all data written is Base45-encoded to the original provided OutputStream.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Base45OutputStream.Builderbuilder()Constructs a new Builder.-
Methods inherited from class org.apache.commons.codec.binary.BaseNCodecOutputStream
close, eof, flush, isStrictDecoding, write, write
-
-
-
-
Constructor Detail
-
Base45OutputStream
public Base45OutputStream(java.io.OutputStream outputStream)
Constructs a Base45OutputStream such that all data written is Base45-encoded to the original provided OutputStream.- Parameters:
outputStream- OutputStream to wrap.
-
-
Method Detail
-
builder
public static Base45OutputStream.Builder builder()
Constructs a new Builder.- Returns:
- A new Builder.
-
-