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 Type
    Method
    Description
    boolean
    call(ThreadContext context, Data fallback, org.jcodings.transcode.EConv ec)
    Return a replacement character for the given byte range and encoding.
  • Method Details

    • call

      boolean call(ThreadContext context, Data fallback, org.jcodings.transcode.EConv ec)
      Return a replacement character for the given byte range and encoding.
      Parameters:
      context - runtime state for the function
      fallback - data for the function
      ec - the transcoder that stumbled over the character
      Returns:
      true if the character was successfully replaced; false otherwise