public class CharsetTranscoder.TranscoderEngine
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
CharsetTranscoder.TranscoderEngine.TranscoderState |
| Modifier and Type | Field and Description |
|---|---|
boolean |
binaryToCharacter |
java.nio.charset.CharsetDecoder |
decoder |
boolean |
didDecode |
boolean |
didEncode |
java.nio.charset.CharsetEncoder |
encoder |
RubyCoderResult |
result |
java.nio.CharBuffer |
tmpChars |
| Constructor and Description |
|---|
TranscoderEngine(java.nio.charset.Charset inCharset,
java.nio.charset.Charset outCharset,
boolean binaryToCharacter) |
| Modifier and Type | Method and Description |
|---|---|
float |
averageByteRatio() |
private java.nio.CharBuffer |
doTranslations(boolean universalNewline,
boolean crlfNewline,
boolean crNewline,
boolean xmlText,
boolean xmlAttr) |
private boolean |
encode(CharsetTranscoder.TranscoderEngine.TranscoderState state,
java.nio.CharBuffer inChars,
java.lang.String replaceString,
int flags,
boolean endOfInput) |
org.jruby.util.ByteList |
finish() |
private boolean |
growBuffer(CharsetTranscoder.TranscoderEngine.TranscoderState state,
int flags) |
private boolean |
putReplacement(CharsetTranscoder.TranscoderEngine.TranscoderState state,
java.lang.String replaceString,
int flags) |
void |
reset() |
RubyCoderResult |
transcode(CharsetTranscoder.TranscoderEngine.TranscoderState state,
int flags) |
public java.nio.CharBuffer tmpChars
public final java.nio.charset.CharsetDecoder decoder
public final java.nio.charset.CharsetEncoder encoder
public boolean binaryToCharacter
public RubyCoderResult result
public boolean didDecode
public boolean didEncode
public TranscoderEngine(java.nio.charset.Charset inCharset,
java.nio.charset.Charset outCharset,
boolean binaryToCharacter)
public float averageByteRatio()
public RubyCoderResult transcode(CharsetTranscoder.TranscoderEngine.TranscoderState state, int flags)
public org.jruby.util.ByteList finish()
public void reset()
private boolean growBuffer(CharsetTranscoder.TranscoderEngine.TranscoderState state, int flags)
private boolean encode(CharsetTranscoder.TranscoderEngine.TranscoderState state, java.nio.CharBuffer inChars, java.lang.String replaceString, int flags, boolean endOfInput)
private boolean putReplacement(CharsetTranscoder.TranscoderEngine.TranscoderState state, java.lang.String replaceString, int flags)
private java.nio.CharBuffer doTranslations(boolean universalNewline,
boolean crlfNewline,
boolean crNewline,
boolean xmlText,
boolean xmlAttr)