UnicodeEncoder
Base class for different flavors of UTF-16 encoders
Inheritors
Functions
Returns the average number of bytes that will be produced for each character of input. This heuristic value may be used to estimate the size of the output buffer required for a given input sequence.
Convenience method that encodes the remaining content of a single input character buffer into a newly-allocated byte buffer.
Encodes as many characters as possible from the given input buffer, writing the results to the given output buffer.
Flushes this encoder.
Tells whether or not the given byte array is a legal replacement value for this encoder.
Returns this encoder's current action for malformed-input errors.
Returns the maximum number of bytes that will be produced for each character of input. This value may be used to compute the worst-case size of the output buffer required for a given input sequence. This value accounts for any necessary content-independent prefix or suffix
Changes this encoder's action for malformed-input errors.
Changes this encoder's action for unmappable-character errors.
Returns this encoder's replacement value.
Changes this encoder's replacement value.
Resets this encoder, clearing any internal state.
Returns this encoder's current action for unmappable-character errors.