public class CharsetTranscoder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CharsetTranscoder.CodingErrorActions |
Constructor and Description |
---|
CharsetTranscoder(ThreadContext context,
org.jcodings.Encoding toEncoding,
org.jcodings.Encoding forceEncoding,
CharsetTranscoder.CodingErrorActions actions) |
CharsetTranscoder(ThreadContext context,
org.jcodings.Encoding toEncoding,
IRubyObject options) |
Modifier and Type | Method and Description |
---|---|
static CharsetTranscoder.CodingErrorActions |
getCodingErrorActions(ThreadContext context,
IRubyObject opts) |
protected org.jruby.util.ByteList |
transcode(Ruby runtime,
org.jruby.util.ByteList value,
org.jcodings.Encoding fromEncoding) |
org.jruby.util.ByteList |
transcode(ThreadContext context,
org.jruby.util.ByteList value) |
static org.jruby.util.ByteList |
transcode(ThreadContext context,
org.jruby.util.ByteList value,
org.jcodings.Encoding forceEncoding,
org.jcodings.Encoding toEncoding,
IRubyObject opts)
This will try and transcode the supplied ByteList to the supplied toEncoding.
|
public CharsetTranscoder(ThreadContext context, org.jcodings.Encoding toEncoding, IRubyObject options)
public CharsetTranscoder(ThreadContext context, org.jcodings.Encoding toEncoding, org.jcodings.Encoding forceEncoding, CharsetTranscoder.CodingErrorActions actions)
public org.jruby.util.ByteList transcode(ThreadContext context, org.jruby.util.ByteList value)
protected org.jruby.util.ByteList transcode(Ruby runtime, org.jruby.util.ByteList value, org.jcodings.Encoding fromEncoding)
public static org.jruby.util.ByteList transcode(ThreadContext context, org.jruby.util.ByteList value, org.jcodings.Encoding forceEncoding, org.jcodings.Encoding toEncoding, IRubyObject opts)
public static CharsetTranscoder.CodingErrorActions getCodingErrorActions(ThreadContext context, IRubyObject opts)
Copyright © 2002-2009 JRuby Team. All Rights Reserved.