Package org.jruby.util.io
Interface EncodingUtils.TranscodeFallback<Data>
- Type Parameters:
Data
- Data needed for the function to execute
- Enclosing class:
EncodingUtils
public static interface EncodingUtils.TranscodeFallback<Data>
Fallback function to provide replacements for characters that fail to transcode.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
call
(ThreadContext context, Data fallback, org.jcodings.transcode.EConv ec) Return a replacement character for the given byte range and encoding.
-
Method Details
-
call
Return a replacement character for the given byte range and encoding.- Parameters:
context
- runtime state for the functionfallback
- data for the functionec
- the transcoder that stumbled over the character- Returns:
- true if the character was successfully replaced; false otherwise
-