java.lang.Object
org.kink_lang.kink.internal.str.Decoder
Converter from a sequence of bytes, to a text.
-
Method Summary
-
Method Details
-
of
Returns a new decoder for the charset.- Parameters:
cs- the charset.- Returns:
- a new decoder.
-
terminate
public void terminate()Terminates the decoder. Calling this method twice is not permitted. -
consume
public void consume(byte[] bytes) Consumes bytes.- Parameters:
bytes- consumed bytes.
-
emitText
Emits the remaining text.- Returns:
- the remaining text.
-