com.caucho.quercus.lib.i18n
Class GenericDecoder

java.lang.Object
  extended by com.caucho.quercus.lib.i18n.Decoder
      extended by com.caucho.quercus.lib.i18n.GenericDecoder
Direct Known Subclasses:
Big5Decoder

public class GenericDecoder
extends Decoder


Field Summary
protected  java.nio.charset.CharsetDecoder _decoder
           
 
Fields inherited from class com.caucho.quercus.lib.i18n.Decoder
_hasError, _isAllowMalformedOut, _isIgnoreErrors, _isReplaceUnicode, _replacement
 
Constructor Summary
GenericDecoder(java.lang.String charsetName)
           
 
Method Summary
protected  java.lang.StringBuilder decodeImpl(Env env, StringValue str)
           
protected  boolean fill(java.lang.StringBuilder sb, java.nio.ByteBuffer in, java.nio.CharBuffer out, java.nio.charset.CoderResult coder)
           
 boolean isDecodable(Env env, StringValue str)
           
 void reset()
           
 
Methods inherited from class com.caucho.quercus.lib.i18n.Decoder
create, decode, decodeStringBuilder, decodeUnicode, hasError, isIgnoreErrors, isUtf8, setAllowMalformedOut, setIgnoreErrors, setReplacement, setReplaceUnicode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_decoder

protected java.nio.charset.CharsetDecoder _decoder
Constructor Detail

GenericDecoder

public GenericDecoder(java.lang.String charsetName)
Method Detail

reset

public void reset()
Overrides:
reset in class Decoder

isDecodable

public boolean isDecodable(Env env,
                           StringValue str)
Specified by:
isDecodable in class Decoder

decodeImpl

protected java.lang.StringBuilder decodeImpl(Env env,
                                             StringValue str)
Specified by:
decodeImpl in class Decoder

fill

protected boolean fill(java.lang.StringBuilder sb,
                       java.nio.ByteBuffer in,
                       java.nio.CharBuffer out,
                       java.nio.charset.CoderResult coder)