com.sun.xml.bind.marshaller
Class MS1252Encoder
java.lang.Object
java.nio.charset.CharsetEncoder
com.sun.xml.bind.marshaller.MS1252Encoder
public final class MS1252Encoder
- extends CharsetEncoder
MS1252 encoder that corrects a bug in JDK1.4.2_01.
See
http://www.microsoft.com/globaldev/reference/sbcs/1252.htm
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.
No generated code is directly depending on this, so we can potentially
remove this in future.
| 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 |
MS1252Encoder
public MS1252Encoder(Charset cs)
canEncode
public boolean canEncode(char c)
encodeLoop
protected CoderResult encodeLoop(CharBuffer src,
ByteBuffer dst)
- Specified by:
encodeLoop in class CharsetEncoder
encode
public byte encode(char inputChar)
Copyright © 2014 Oracle Corporation. All Rights Reserved.