パッケージ org.xmlpull.mxp1

クラス MXParserCachingStrings

  • すべての実装されたインタフェース:
    Cloneable, XmlPullParser
    直系の既知のサブクラス:
    MXParserNonValidating

    public class MXParserCachingStrings
    extends MXParser
    implements Cloneable
    Extend MXP parser to use string cache of char[] to interned String

    NOTE: it is not non-validaint parser as there is no supporting internal DTD parsing no full XML 1.0 (or 1.1) character classes are supported.

    作成者:
    Aleksander Slominski
    • フィールドの詳細

      • cacheStatCalls

        protected int cacheStatCalls
      • cacheStatWalks

        protected int cacheStatWalks
      • cacheStatResets

        protected int cacheStatResets
      • cacheStatRehash

        protected int cacheStatRehash
      • CACHE_LOAD

        protected static final int CACHE_LOAD
        NOTE: implemented as integers and not flot to allow to work on J2ME.
        関連項目:
        定数フィールド値
      • cacheEntriesCount

        protected int cacheEntriesCount
      • cacheEntriesThreshold

        protected int cacheEntriesThreshold
      • keys

        protected char[][] keys
      • values

        protected String[] values
    • コンストラクタの詳細

      • MXParserCachingStrings

        public MXParserCachingStrings()
    • メソッドの詳細

      • getFeature

        public boolean getFeature​(String name)
        クラスからコピーされた説明: MXParser
        Unknown properties are always returned as false
        定義:
        getFeature インタフェース内 XmlPullParser
        オーバーライド:
        getFeature クラス内 MXParser
        パラメータ:
        name - The name of feature to be retrieved.
        戻り値:
        The value of the feature.
      • finalize

        public void finalize()
        Hook to GC finalization to print statistics about pool cache impl. perf.
        オーバーライド:
        finalize クラス内 Object
      • newString

        protected String newString​(char[] cbuf,
                                   int off,
                                   int len)
        If feature name interning is enabled then this funtion MUST return interned string.
        オーバーライド:
        newString クラス内 MXParser
      • newStringIntern

        protected String newStringIntern​(char[] cbuf,
                                         int off,
                                         int len)
        This is efficient implementation of pool that returns interned String based on char[] input.
        オーバーライド:
        newStringIntern クラス内 MXParser
      • initStringCache

        protected void initStringCache()