com.caucho.quercus.lib.i18n
Class GenericEncoder

java.lang.Object
  extended by com.caucho.quercus.lib.i18n.Encoder
      extended by com.caucho.quercus.lib.i18n.GenericEncoder
Direct Known Subclasses:
Big5Encoder

public class GenericEncoder
extends Encoder


Field Summary
protected  java.nio.charset.CharsetEncoder _encoder
           
 
Fields inherited from class com.caucho.quercus.lib.i18n.Encoder
_isIgnore, _isReplaceUnicode, _replacement, ERROR_CHARACTER
 
Constructor Summary
GenericEncoder(java.lang.String charsetName)
           
 
Method Summary
 StringValue encode(Env env, java.lang.CharSequence str)
           
protected  boolean fill(StringValue sb, java.nio.CharBuffer in, java.nio.ByteBuffer out, java.nio.charset.CoderResult coder)
           
 boolean isEncodable(Env env, StringValue str)
           
 void reset()
           
 
Methods inherited from class com.caucho.quercus.lib.i18n.Encoder
create, encode, isIgnore, isUtf8, setIgnoreErrors, setReplacement, setReplaceUnicode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_encoder

protected java.nio.charset.CharsetEncoder _encoder
Constructor Detail

GenericEncoder

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

isEncodable

public boolean isEncodable(Env env,
                           StringValue str)
Specified by:
isEncodable in class Encoder

encode

public StringValue encode(Env env,
                          java.lang.CharSequence str)
Specified by:
encode in class Encoder

fill

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

reset

public void reset()
Overrides:
reset in class Encoder