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

java.lang.Object
  extended by java.nio.charset.CharsetDecoder
      extended by com.bretth.osmosis.core.xml.common.ProductionDbDataDecoder

public class ProductionDbDataDecoder
extends java.nio.charset.CharsetDecoder

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

Author:
Brett Henderson

Constructor Summary
protected ProductionDbDataDecoder(java.nio.charset.Charset cs, float averageCharsPerByte, float maxCharsPerByte)
          Creates a new instance.
 
Method Summary
protected  java.nio.charset.CoderResult decodeLoop(java.nio.ByteBuffer in, java.nio.CharBuffer out)
          
 
Methods inherited from class java.nio.charset.CharsetDecoder
averageCharsPerByte, charset, decode, decode, detectedCharset, flush, implFlush, implOnMalformedInput, implOnUnmappableCharacter, implReplaceWith, implReset, isAutoDetecting, isCharsetDetected, malformedInputAction, maxCharsPerByte, 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

ProductionDbDataDecoder

protected ProductionDbDataDecoder(java.nio.charset.Charset cs,
                                  float averageCharsPerByte,
                                  float maxCharsPerByte)
Creates a new instance.

Parameters:
cs - The owning character set.
averageCharsPerByte - The average number of output characters per byte.
maxCharsPerByte - The maximum number of output characters per byte.
Method Detail

decodeLoop

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

Specified by:
decodeLoop in class java.nio.charset.CharsetDecoder