org.extex.io.charsets
Class TableEncoder

java.lang.Object
  extended by java.nio.charset.CharsetEncoder
      extended by org.extex.io.charsets.TableEncoder

public class TableEncoder
extends java.nio.charset.CharsetEncoder

This class provides a table-based CharsetEncoder.

Version:
$Revision: 6414 $
Author:
Gerd Neugebauer

Constructor Summary
TableEncoder(java.nio.charset.Charset cs, char[] table)
          Creates a new object.
 
Method Summary
protected  java.nio.charset.CoderResult encodeLoop(java.nio.CharBuffer in, java.nio.ByteBuffer out)
          
 
Methods inherited from class java.nio.charset.CharsetEncoder
averageBytesPerChar, canEncode, 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

TableEncoder

public TableEncoder(java.nio.charset.Charset cs,
                    char[] table)
Creates a new object.

Parameters:
cs - the char set
table - the table of values
Method Detail

encodeLoop

protected java.nio.charset.CoderResult encodeLoop(java.nio.CharBuffer in,
                                                  java.nio.ByteBuffer out)

Specified by:
encodeLoop in class java.nio.charset.CharsetEncoder
See Also:
CharsetEncoder.encodeLoop(java.nio.CharBuffer, java.nio.ByteBuffer)