java.lang.Object
org.kink_lang.kink.internal.str.Encoder
Converter from texts to a sequence of bytes.
-
Method Summary
-
Method Details
-
of
Returns a new encoder for the charset.- Parameters:
csEncoder- the charset encoder.- Returns:
- an encoder.
-
encode
Encodes a str.- Parameters:
str- a str.- Returns:
- the encoded bytes.
-
terminate
public byte[] terminate()Terminates the encoder. Calling this method twice is not permitted.- Returns:
- the last bytes.
-