Package org.jruby.util.io
Class EncodingUtils.AbstractTranscodeFallback
java.lang.Object
org.jruby.util.io.EncodingUtils.AbstractTranscodeFallback
- All Implemented Interfaces:
EncodingUtils.TranscodeFallback<IRubyObject>
- Enclosing class:
- EncodingUtils
private abstract static class EncodingUtils.AbstractTranscodeFallback
extends Object
implements EncodingUtils.TranscodeFallback<IRubyObject>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancall(ThreadContext context, IRubyObject fallback, org.jcodings.transcode.EConv ec) Return a replacement character for the given byte range and encoding.protected abstract IRubyObjectinnerCall(ThreadContext context, IRubyObject fallback, IRubyObject c)
-
Constructor Details
-
AbstractTranscodeFallback
private AbstractTranscodeFallback()
-
-
Method Details
-
call
Description copied from interface:EncodingUtils.TranscodeFallbackReturn a replacement character for the given byte range and encoding.- Specified by:
callin interfaceEncodingUtils.TranscodeFallback<IRubyObject>- 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
-
innerCall
protected abstract IRubyObject innerCall(ThreadContext context, IRubyObject fallback, IRubyObject c)
-