Uses of Interface
com.aoapps.lang.io.Encoder
-
Uses of Encoder in com.aoapps.lang
Modifier and TypeMethodDescriptionstatic void
Coercion.append
(Object value, Encoder encoder, Appendable out) Encodes an object's String representation, supporting streaming for specialized types.static void
Coercion.append
(Object value, Encoder encoder, Appendable out, boolean outOptimized) Encodes an object's String representation, supporting streaming for specialized types.static Writer
Optimizes the given writer by passing throughCoercionOptimizer.optimize(java.io.Writer, com.aoapps.lang.io.Encoder)
on all registered coercion optimizers until there are no replacements.static Appendable
Coercion.optimize
(Appendable out, Encoder encoder) Optimizes the given appendable by dispatching toCoercion.optimize(java.io.Writer, com.aoapps.lang.io.Encoder)
when it is aWriter
.Unwraps a writer to expose any wrapped writer.static void
Strings.replace
(String string, char find, String replacement, Appendable out, Encoder encoder) Replaces all occurrences of a character with a String, appends the replacement toout
.static void
Replaces all occurrences of a String with a String, appends the replacement toout
.static void
Encodes an object's String representation, supporting streaming for specialized types.static void
Encodes an object's String representation, supporting streaming for specialized types. -
Uses of Encoder in com.aoapps.lang.io
Modifier and TypeMethodDescriptionEncoder.append
(char c, Appendable out) Encoder.append
(CharSequence csq, int start, int end, Appendable out) Encoder.append
(CharSequence csq, Appendable out) EncoderWriter.getEncoder()
This method may be overridden for the purpose of covariant return, but must returnEncoderWriter.encoder
.Modifier and TypeMethodDescriptiondefault void
Writable.appendTo
(Encoder encoder, Appendable out) Appends a streamed version of the object's String representation using the given encoder.default void
Writable.appendTo
(Encoder encoder, Appendable out, long start, long end) Appends a streamed version of the object's String representation using the given encoder.void
void
void
Writes a streamed version of the object's String representation using the given encoder.void
Writes a streamed version of the object's String representation using the given encoder.ModifierConstructorDescriptionEncoderWriter
(Encoder encoder, Writer out) EncoderWriter
(Encoder encoder, Writer out, boolean outOptimized)