Class MS1252Encoder

java.lang.Object  extended by java.nio.charset.CharsetEncoder      extended by com.sun.codemodel.util.MS1252Encoder

public final class MS1252Encoder
extends CharsetEncoder

MS1252 encoder that corrects a bug in JDK1.4.2_01.

See for the normative definition. This code depends on Sun internal package, so we have to make sure it won't be executed on other JDKs.

Constructor Summary
MS1252Encoder(Charset cs)
Method Summary
 booleancanEncode(char c)
 byteencode(char inputChar)
protected  CoderResultencodeLoop(CharBuffer src, ByteBuffer dst)
Methods inherited from class java.nio.charset.CharsetEncoder
averageBytesPerChar, canEncode, charset, encode, encode, flush, implFlush, implOnMalformedInput, implOnUnmappableCharacter, implReplaceWith, implReset, isLegalReplacement, malformedInputAction, maxBytesPerChar, onMalformedInput, onUnmappableCharacter, replacement, replaceWith, reset, unmappableCharacterAction
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public MS1252Encoder(Charset cs)
Method Detail


public boolean canEncode(char c)


protected CoderResult encodeLoop(CharBuffer src,                                 ByteBuffer dst)
Specified by:
encodeLoop in class CharsetEncoder


public byte encode(char inputChar)

Copyright © 2005-2011
Oracle. All Rights Reserved.

Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14