com.bretth.osmosis.core.xml.common
Class ProductionDbDataEncoder

java.lang.Object
  extended by java.nio.charset.CharsetEncoder
      extended by com.bretth.osmosis.core.xml.common.ProductionDbDataEncoder

public class ProductionDbDataEncoder
extends java.nio.charset.CharsetEncoder

A special character set encoder to work around the production OSM database issue of double encoded data.

Author:
Brett Henderson

Constructor Summary
protected ProductionDbDataEncoder(java.nio.charset.Charset cs, float averageBytesPerChar, float maxBytesPerChar)
          Creates a new instance.
 
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

ProductionDbDataEncoder

protected ProductionDbDataEncoder(java.nio.charset.Charset cs,
                                  float averageBytesPerChar,
                                  float maxBytesPerChar)
Creates a new instance.

Parameters:
cs - The owning character set.
averageBytesPerChar - The average number of output bytes per character.
maxBytesPerChar - The maximum number of output bytes per character.
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