com.ctc.wstx.compat
Class Jdk13Impl

java.lang.Object
  extended by com.ctc.wstx.compat.JdkImpl
      extended by com.ctc.wstx.compat.Jdk12Impl
          extended by com.ctc.wstx.compat.Jdk13Impl
Direct Known Subclasses:
Jdk14Impl

public class Jdk13Impl
extends Jdk12Impl

JDK 1.3 compatible implementation; adds off-the-shelf simple data struct instances on top of 1.2.


Constructor Summary
  Jdk13Impl()
          Constructor used for creating 'real' instance.
protected Jdk13Impl(boolean dummy)
          Constructor derived classes call to avoid creation of helper Objects 'real' instance needs (if any)
 
Method Summary
 java.util.List getEmptyList()
           
 java.util.Map getEmptyMap()
           
 java.util.Set getEmptySet()
           
 boolean leakingThreadLocal()
          For 1.3, ThreadLocal has problems, and can leak memory.
 
Methods inherited from class com.ctc.wstx.compat.Jdk12Impl
getInsertOrderedMap, getInsertOrderedMap, getLRULimitMap, setInitCause
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Jdk13Impl

public Jdk13Impl()
Constructor used for creating 'real' instance.


Jdk13Impl

protected Jdk13Impl(boolean dummy)
Constructor derived classes call to avoid creation of helper Objects 'real' instance needs (if any)

Method Detail

leakingThreadLocal

public boolean leakingThreadLocal()
For 1.3, ThreadLocal has problems, and can leak memory. (check http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4414045 for details, or google for "ThreadLocal memory leaks")

Overrides:
leakingThreadLocal in class Jdk12Impl
Returns:
True if using ThreadLocal is safe, and should not (in itself) be able to cause memory leaks; false if it is possible

getEmptyList

public java.util.List getEmptyList()
Overrides:
getEmptyList in class Jdk12Impl

getEmptyMap

public java.util.Map getEmptyMap()
Overrides:
getEmptyMap in class Jdk12Impl

getEmptySet

public java.util.Set getEmptySet()
Overrides:
getEmptySet in class Jdk12Impl