com.sun.org.apache.xml.internal.utils.IntVector Java Examples

The following examples show how to use com.sun.org.apache.xml.internal.utils.IntVector. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: DTMAxisIterNodeList.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Public constructor: Wrap a DTMNodeList around an existing
 * and preconfigured DTMAxisIterator
 */
public DTMAxisIterNodeList(DTM dtm, DTMAxisIterator dtmAxisIterator) {
    if (dtmAxisIterator == null) {
        m_last = 0;
    } else {
        m_cachedNodes = new IntVector();
        m_dtm = dtm;
    }
    m_iter = dtmAxisIterator;
}
 
Example #2
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: SAX2RTFDTM.java    License: Apache License 2.0 5 votes vote down vote up
public SAX2RTFDTM(DTMManager mgr, Source source, int dtmIdentity,
               DTMWSFilter whiteSpaceFilter,
               XMLStringFactory xstringfactory,
               boolean doIndexing)
{
  super(mgr, source, dtmIdentity, whiteSpaceFilter,
        xstringfactory, doIndexing);

  // NEVER track source locators for RTFs; they aren't meaningful. I think.
  // (If we did track them, we'd need to tail-prune these too.)
  //com.sun.org.apache.xalan.internal.processor.TransformerFactoryImpl.m_source_location;
  m_useSourceLocationProperty=false;
  m_sourceSystemId = (m_useSourceLocationProperty) ? new StringVector()
                                                   : null;
  m_sourceLine = (m_useSourceLocationProperty) ? new IntVector() : null;
  m_sourceColumn = (m_useSourceLocationProperty) ? new IntVector() : null;

  // Record initial sizes of fields that are pushed and restored
  // for RTF tail-pruning.  More entries can be popped than pushed, so
  // we need this to mark the primordial state of the DTM.
  m_emptyNodeCount = m_size;
  m_emptyNSDeclSetCount = (m_namespaceDeclSets == null)
                               ? 0 : m_namespaceDeclSets.size();
  m_emptyNSDeclSetElemsCount = (m_namespaceDeclSetElements == null)
                                    ? 0 : m_namespaceDeclSetElements.size();
  m_emptyDataCount = m_data.size();
  m_emptyCharsCount = m_chars.size();
  m_emptyDataQNCount = m_dataOrQName.size();
}
 
Example #3
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: DTMStringPool.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Create a DTMStringPool using the given chain size
 *
 * @param chainSize The size of the hash chain vector
 */
public DTMStringPool(int chainSize)
  {
    m_intToString=new Vector();
    m_hashChain=new IntVector(chainSize);
    removeAllElements();

    // -sb Add this to force empty strings to be index 0.
    stringToIndex("");
  }
 
Example #4
Source Project: TencentKona-8   Author: Tencent   File: DTMAxisIterNodeList.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Public constructor: Wrap a DTMNodeList around an existing
 * and preconfigured DTMAxisIterator
 */
public DTMAxisIterNodeList(DTM dtm, DTMAxisIterator dtmAxisIterator) {
    if (dtmAxisIterator == null) {
        m_last = 0;
    } else {
        m_cachedNodes = new IntVector();
        m_dtm = dtm;
    }
    m_iter = dtmAxisIterator;
}
 
Example #5
Source Project: TencentKona-8   Author: Tencent   File: SAX2RTFDTM.java    License: GNU General Public License v2.0 5 votes vote down vote up
public SAX2RTFDTM(DTMManager mgr, Source source, int dtmIdentity,
               DTMWSFilter whiteSpaceFilter,
               XMLStringFactory xstringfactory,
               boolean doIndexing)
{
  super(mgr, source, dtmIdentity, whiteSpaceFilter,
        xstringfactory, doIndexing);

  // NEVER track source locators for RTFs; they aren't meaningful. I think.
  // (If we did track them, we'd need to tail-prune these too.)
  //com.sun.org.apache.xalan.internal.processor.TransformerFactoryImpl.m_source_location;
  m_useSourceLocationProperty=false;
  m_sourceSystemId = (m_useSourceLocationProperty) ? new StringVector()
                                                   : null;
  m_sourceLine = (m_useSourceLocationProperty) ? new IntVector() : null;
  m_sourceColumn = (m_useSourceLocationProperty) ? new IntVector() : null;

  // Record initial sizes of fields that are pushed and restored
  // for RTF tail-pruning.  More entries can be popped than pushed, so
  // we need this to mark the primordial state of the DTM.
  m_emptyNodeCount = m_size;
  m_emptyNSDeclSetCount = (m_namespaceDeclSets == null)
                               ? 0 : m_namespaceDeclSets.size();
  m_emptyNSDeclSetElemsCount = (m_namespaceDeclSetElements == null)
                                    ? 0 : m_namespaceDeclSetElements.size();
  m_emptyDataCount = m_data.size();
  m_emptyCharsCount = m_chars.size();
  m_emptyDataQNCount = m_dataOrQName.size();
}
 
Example #6
Source Project: TencentKona-8   Author: Tencent   File: DTMStringPool.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Create a DTMStringPool using the given chain size
 *
 * @param chainSize The size of the hash chain vector
 */
public DTMStringPool(int chainSize)
  {
    m_intToString=new Vector();
    m_hashChain=new IntVector(chainSize);
    removeAllElements();

    // -sb Add this to force empty strings to be index 0.
    stringToIndex("");
  }
 
Example #7
Source Project: jdk8u60   Author: chenghanpeng   File: DTMAxisIterNodeList.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Public constructor: Wrap a DTMNodeList around an existing
 * and preconfigured DTMAxisIterator
 */
public DTMAxisIterNodeList(DTM dtm, DTMAxisIterator dtmAxisIterator) {
    if (dtmAxisIterator == null) {
        m_last = 0;
    } else {
        m_cachedNodes = new IntVector();
        m_dtm = dtm;
    }
    m_iter = dtmAxisIterator;
}
 
Example #8
Source Project: jdk8u60   Author: chenghanpeng   File: SAX2RTFDTM.java    License: GNU General Public License v2.0 5 votes vote down vote up
public SAX2RTFDTM(DTMManager mgr, Source source, int dtmIdentity,
               DTMWSFilter whiteSpaceFilter,
               XMLStringFactory xstringfactory,
               boolean doIndexing)
{
  super(mgr, source, dtmIdentity, whiteSpaceFilter,
        xstringfactory, doIndexing);

  // NEVER track source locators for RTFs; they aren't meaningful. I think.
  // (If we did track them, we'd need to tail-prune these too.)
  //com.sun.org.apache.xalan.internal.processor.TransformerFactoryImpl.m_source_location;
  m_useSourceLocationProperty=false;
  m_sourceSystemId = (m_useSourceLocationProperty) ? new StringVector()
                                                   : null;
  m_sourceLine = (m_useSourceLocationProperty) ? new IntVector() : null;
  m_sourceColumn = (m_useSourceLocationProperty) ? new IntVector() : null;

  // Record initial sizes of fields that are pushed and restored
  // for RTF tail-pruning.  More entries can be popped than pushed, so
  // we need this to mark the primordial state of the DTM.
  m_emptyNodeCount = m_size;
  m_emptyNSDeclSetCount = (m_namespaceDeclSets == null)
                               ? 0 : m_namespaceDeclSets.size();
  m_emptyNSDeclSetElemsCount = (m_namespaceDeclSetElements == null)
                                    ? 0 : m_namespaceDeclSetElements.size();
  m_emptyDataCount = m_data.size();
  m_emptyCharsCount = m_chars.size();
  m_emptyDataQNCount = m_dataOrQName.size();
}
 
Example #9
Source Project: jdk8u60   Author: chenghanpeng   File: DTMStringPool.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Create a DTMStringPool using the given chain size
 *
 * @param chainSize The size of the hash chain vector
 */
public DTMStringPool(int chainSize)
  {
    m_intToString=new Vector();
    m_hashChain=new IntVector(chainSize);
    removeAllElements();

    // -sb Add this to force empty strings to be index 0.
    stringToIndex("");
  }
 
Example #10
Source Project: JDKSourceCode1.8   Author: wupeixuan   File: DTMAxisIterNodeList.java    License: MIT License 5 votes vote down vote up
/**
 * Public constructor: Wrap a DTMNodeList around an existing
 * and preconfigured DTMAxisIterator
 */
public DTMAxisIterNodeList(DTM dtm, DTMAxisIterator dtmAxisIterator) {
    if (dtmAxisIterator == null) {
        m_last = 0;
    } else {
        m_cachedNodes = new IntVector();
        m_dtm = dtm;
    }
    m_iter = dtmAxisIterator;
}
 
Example #11
Source Project: JDKSourceCode1.8   Author: wupeixuan   File: SAX2RTFDTM.java    License: MIT License 5 votes vote down vote up
public SAX2RTFDTM(DTMManager mgr, Source source, int dtmIdentity,
               DTMWSFilter whiteSpaceFilter,
               XMLStringFactory xstringfactory,
               boolean doIndexing)
{
  super(mgr, source, dtmIdentity, whiteSpaceFilter,
        xstringfactory, doIndexing);

  // NEVER track source locators for RTFs; they aren't meaningful. I think.
  // (If we did track them, we'd need to tail-prune these too.)
  //com.sun.org.apache.xalan.internal.processor.TransformerFactoryImpl.m_source_location;
  m_useSourceLocationProperty=false;
  m_sourceSystemId = (m_useSourceLocationProperty) ? new StringVector()
                                                   : null;
  m_sourceLine = (m_useSourceLocationProperty) ? new IntVector() : null;
  m_sourceColumn = (m_useSourceLocationProperty) ? new IntVector() : null;

  // Record initial sizes of fields that are pushed and restored
  // for RTF tail-pruning.  More entries can be popped than pushed, so
  // we need this to mark the primordial state of the DTM.
  m_emptyNodeCount = m_size;
  m_emptyNSDeclSetCount = (m_namespaceDeclSets == null)
                               ? 0 : m_namespaceDeclSets.size();
  m_emptyNSDeclSetElemsCount = (m_namespaceDeclSetElements == null)
                                    ? 0 : m_namespaceDeclSetElements.size();
  m_emptyDataCount = m_data.size();
  m_emptyCharsCount = m_chars.size();
  m_emptyDataQNCount = m_dataOrQName.size();
}
 
Example #12
Source Project: JDKSourceCode1.8   Author: wupeixuan   File: DTMStringPool.java    License: MIT License 5 votes vote down vote up
/**
 * Create a DTMStringPool using the given chain size
 *
 * @param chainSize The size of the hash chain vector
 */
public DTMStringPool(int chainSize)
  {
    m_intToString=new Vector();
    m_hashChain=new IntVector(chainSize);
    removeAllElements();

    // -sb Add this to force empty strings to be index 0.
    stringToIndex("");
  }
 
Example #13
Source Project: openjdk-jdk8u   Author: AdoptOpenJDK   File: DTMAxisIterNodeList.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Public constructor: Wrap a DTMNodeList around an existing
 * and preconfigured DTMAxisIterator
 */
public DTMAxisIterNodeList(DTM dtm, DTMAxisIterator dtmAxisIterator) {
    if (dtmAxisIterator == null) {
        m_last = 0;
    } else {
        m_cachedNodes = new IntVector();
        m_dtm = dtm;
    }
    m_iter = dtmAxisIterator;
}
 
Example #14
Source Project: openjdk-jdk8u   Author: AdoptOpenJDK   File: SAX2RTFDTM.java    License: GNU General Public License v2.0 5 votes vote down vote up
public SAX2RTFDTM(DTMManager mgr, Source source, int dtmIdentity,
               DTMWSFilter whiteSpaceFilter,
               XMLStringFactory xstringfactory,
               boolean doIndexing)
{
  super(mgr, source, dtmIdentity, whiteSpaceFilter,
        xstringfactory, doIndexing);

  // NEVER track source locators for RTFs; they aren't meaningful. I think.
  // (If we did track them, we'd need to tail-prune these too.)
  //com.sun.org.apache.xalan.internal.processor.TransformerFactoryImpl.m_source_location;
  m_useSourceLocationProperty=false;
  m_sourceSystemId = (m_useSourceLocationProperty) ? new StringVector()
                                                   : null;
  m_sourceLine = (m_useSourceLocationProperty) ? new IntVector() : null;
  m_sourceColumn = (m_useSourceLocationProperty) ? new IntVector() : null;

  // Record initial sizes of fields that are pushed and restored
  // for RTF tail-pruning.  More entries can be popped than pushed, so
  // we need this to mark the primordial state of the DTM.
  m_emptyNodeCount = m_size;
  m_emptyNSDeclSetCount = (m_namespaceDeclSets == null)
                               ? 0 : m_namespaceDeclSets.size();
  m_emptyNSDeclSetElemsCount = (m_namespaceDeclSetElements == null)
                                    ? 0 : m_namespaceDeclSetElements.size();
  m_emptyDataCount = m_data.size();
  m_emptyCharsCount = m_chars.size();
  m_emptyDataQNCount = m_dataOrQName.size();
}
 
Example #15
Source Project: openjdk-jdk8u   Author: AdoptOpenJDK   File: DTMStringPool.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Create a DTMStringPool using the given chain size
 *
 * @param chainSize The size of the hash chain vector
 */
public DTMStringPool(int chainSize)
  {
    m_intToString=new Vector();
    m_hashChain=new IntVector(chainSize);
    removeAllElements();

    // -sb Add this to force empty strings to be index 0.
    stringToIndex("");
  }
 
Example #16
Source Project: openjdk-jdk8u-backup   Author: AdoptOpenJDK   File: DTMAxisIterNodeList.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Public constructor: Wrap a DTMNodeList around an existing
 * and preconfigured DTMAxisIterator
 */
public DTMAxisIterNodeList(DTM dtm, DTMAxisIterator dtmAxisIterator) {
    if (dtmAxisIterator == null) {
        m_last = 0;
    } else {
        m_cachedNodes = new IntVector();
        m_dtm = dtm;
    }
    m_iter = dtmAxisIterator;
}
 
Example #17
Source Project: openjdk-jdk8u-backup   Author: AdoptOpenJDK   File: SAX2RTFDTM.java    License: GNU General Public License v2.0 5 votes vote down vote up
public SAX2RTFDTM(DTMManager mgr, Source source, int dtmIdentity,
               DTMWSFilter whiteSpaceFilter,
               XMLStringFactory xstringfactory,
               boolean doIndexing)
{
  super(mgr, source, dtmIdentity, whiteSpaceFilter,
        xstringfactory, doIndexing);

  // NEVER track source locators for RTFs; they aren't meaningful. I think.
  // (If we did track them, we'd need to tail-prune these too.)
  //com.sun.org.apache.xalan.internal.processor.TransformerFactoryImpl.m_source_location;
  m_useSourceLocationProperty=false;
  m_sourceSystemId = (m_useSourceLocationProperty) ? new StringVector()
                                                   : null;
  m_sourceLine = (m_useSourceLocationProperty) ? new IntVector() : null;
  m_sourceColumn = (m_useSourceLocationProperty) ? new IntVector() : null;

  // Record initial sizes of fields that are pushed and restored
  // for RTF tail-pruning.  More entries can be popped than pushed, so
  // we need this to mark the primordial state of the DTM.
  m_emptyNodeCount = m_size;
  m_emptyNSDeclSetCount = (m_namespaceDeclSets == null)
                               ? 0 : m_namespaceDeclSets.size();
  m_emptyNSDeclSetElemsCount = (m_namespaceDeclSetElements == null)
                                    ? 0 : m_namespaceDeclSetElements.size();
  m_emptyDataCount = m_data.size();
  m_emptyCharsCount = m_chars.size();
  m_emptyDataQNCount = m_dataOrQName.size();
}
 
Example #18
Source Project: openjdk-jdk8u-backup   Author: AdoptOpenJDK   File: DTMStringPool.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Create a DTMStringPool using the given chain size
 *
 * @param chainSize The size of the hash chain vector
 */
public DTMStringPool(int chainSize)
  {
    m_intToString=new Vector();
    m_hashChain=new IntVector(chainSize);
    removeAllElements();

    // -sb Add this to force empty strings to be index 0.
    stringToIndex("");
  }
 
Example #19
Source Project: Bytecoder   Author: mirkosertic   File: DTMAxisIterNodeList.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Public constructor: Wrap a DTMNodeList around an existing
 * and preconfigured DTMAxisIterator
 */
public DTMAxisIterNodeList(DTM dtm, DTMAxisIterator dtmAxisIterator) {
    if (dtmAxisIterator == null) {
        m_last = 0;
    } else {
        m_cachedNodes = new IntVector();
        m_dtm = dtm;
    }
    m_iter = dtmAxisIterator;
}
 
Example #20
Source Project: Bytecoder   Author: mirkosertic   File: SAX2RTFDTM.java    License: Apache License 2.0 5 votes vote down vote up
public SAX2RTFDTM(DTMManager mgr, Source source, int dtmIdentity,
               DTMWSFilter whiteSpaceFilter,
               XMLStringFactory xstringfactory,
               boolean doIndexing)
{
  super(mgr, source, dtmIdentity, whiteSpaceFilter,
        xstringfactory, doIndexing);

  // NEVER track source locators for RTFs; they aren't meaningful. I think.
  // (If we did track them, we'd need to tail-prune these too.)
  //com.sun.org.apache.xalan.internal.processor.TransformerFactoryImpl.m_source_location;
  m_useSourceLocationProperty=false;
  m_sourceSystemId = (m_useSourceLocationProperty) ? new StringVector()
                                                   : null;
  m_sourceLine = (m_useSourceLocationProperty) ? new IntVector() : null;
  m_sourceColumn = (m_useSourceLocationProperty) ? new IntVector() : null;

  // Record initial sizes of fields that are pushed and restored
  // for RTF tail-pruning.  More entries can be popped than pushed, so
  // we need this to mark the primordial state of the DTM.
  m_emptyNodeCount = m_size;
  m_emptyNSDeclSetCount = (m_namespaceDeclSets == null)
                               ? 0 : m_namespaceDeclSets.size();
  m_emptyNSDeclSetElemsCount = (m_namespaceDeclSetElements == null)
                                    ? 0 : m_namespaceDeclSetElements.size();
  m_emptyDataCount = m_data.size();
  m_emptyCharsCount = m_chars.size();
  m_emptyDataQNCount = m_dataOrQName.size();
}
 
Example #21
Source Project: Bytecoder   Author: mirkosertic   File: DTMStringPool.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Create a DTMStringPool using the given chain size
 *
 * @param chainSize The size of the hash chain vector
 */
public DTMStringPool(int chainSize)
  {
    m_intToString = new ArrayList<>();
    m_hashChain= new IntVector(chainSize);
    removeAllElements();

    // -sb Add this to force empty strings to be index 0.
    stringToIndex("");
  }
 
Example #22
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   File: DTMAxisIterNodeList.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Public constructor: Wrap a DTMNodeList around an existing
 * and preconfigured DTMAxisIterator
 */
public DTMAxisIterNodeList(DTM dtm, DTMAxisIterator dtmAxisIterator) {
    if (dtmAxisIterator == null) {
        m_last = 0;
    } else {
        m_cachedNodes = new IntVector();
        m_dtm = dtm;
    }
    m_iter = dtmAxisIterator;
}
 
Example #23
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   File: SAX2RTFDTM.java    License: GNU General Public License v2.0 5 votes vote down vote up
public SAX2RTFDTM(DTMManager mgr, Source source, int dtmIdentity,
               DTMWSFilter whiteSpaceFilter,
               XMLStringFactory xstringfactory,
               boolean doIndexing)
{
  super(mgr, source, dtmIdentity, whiteSpaceFilter,
        xstringfactory, doIndexing);

  // NEVER track source locators for RTFs; they aren't meaningful. I think.
  // (If we did track them, we'd need to tail-prune these too.)
  //com.sun.org.apache.xalan.internal.processor.TransformerFactoryImpl.m_source_location;
  m_useSourceLocationProperty=false;
  m_sourceSystemId = (m_useSourceLocationProperty) ? new StringVector()
                                                   : null;
  m_sourceLine = (m_useSourceLocationProperty) ? new IntVector() : null;
  m_sourceColumn = (m_useSourceLocationProperty) ? new IntVector() : null;

  // Record initial sizes of fields that are pushed and restored
  // for RTF tail-pruning.  More entries can be popped than pushed, so
  // we need this to mark the primordial state of the DTM.
  m_emptyNodeCount = m_size;
  m_emptyNSDeclSetCount = (m_namespaceDeclSets == null)
                               ? 0 : m_namespaceDeclSets.size();
  m_emptyNSDeclSetElemsCount = (m_namespaceDeclSetElements == null)
                                    ? 0 : m_namespaceDeclSetElements.size();
  m_emptyDataCount = m_data.size();
  m_emptyCharsCount = m_chars.size();
  m_emptyDataQNCount = m_dataOrQName.size();
}
 
Example #24
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   File: DTMStringPool.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Create a DTMStringPool using the given chain size
 *
 * @param chainSize The size of the hash chain vector
 */
public DTMStringPool(int chainSize)
  {
    m_intToString=new Vector();
    m_hashChain=new IntVector(chainSize);
    removeAllElements();

    // -sb Add this to force empty strings to be index 0.
    stringToIndex("");
  }
 
Example #25
Source Project: hottub   Author: dsrg-uoft   File: DTMAxisIterNodeList.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Public constructor: Wrap a DTMNodeList around an existing
 * and preconfigured DTMAxisIterator
 */
public DTMAxisIterNodeList(DTM dtm, DTMAxisIterator dtmAxisIterator) {
    if (dtmAxisIterator == null) {
        m_last = 0;
    } else {
        m_cachedNodes = new IntVector();
        m_dtm = dtm;
    }
    m_iter = dtmAxisIterator;
}
 
Example #26
Source Project: hottub   Author: dsrg-uoft   File: SAX2RTFDTM.java    License: GNU General Public License v2.0 5 votes vote down vote up
public SAX2RTFDTM(DTMManager mgr, Source source, int dtmIdentity,
               DTMWSFilter whiteSpaceFilter,
               XMLStringFactory xstringfactory,
               boolean doIndexing)
{
  super(mgr, source, dtmIdentity, whiteSpaceFilter,
        xstringfactory, doIndexing);

  // NEVER track source locators for RTFs; they aren't meaningful. I think.
  // (If we did track them, we'd need to tail-prune these too.)
  //com.sun.org.apache.xalan.internal.processor.TransformerFactoryImpl.m_source_location;
  m_useSourceLocationProperty=false;
  m_sourceSystemId = (m_useSourceLocationProperty) ? new StringVector()
                                                   : null;
  m_sourceLine = (m_useSourceLocationProperty) ? new IntVector() : null;
  m_sourceColumn = (m_useSourceLocationProperty) ? new IntVector() : null;

  // Record initial sizes of fields that are pushed and restored
  // for RTF tail-pruning.  More entries can be popped than pushed, so
  // we need this to mark the primordial state of the DTM.
  m_emptyNodeCount = m_size;
  m_emptyNSDeclSetCount = (m_namespaceDeclSets == null)
                               ? 0 : m_namespaceDeclSets.size();
  m_emptyNSDeclSetElemsCount = (m_namespaceDeclSetElements == null)
                                    ? 0 : m_namespaceDeclSetElements.size();
  m_emptyDataCount = m_data.size();
  m_emptyCharsCount = m_chars.size();
  m_emptyDataQNCount = m_dataOrQName.size();
}
 
Example #27
Source Project: hottub   Author: dsrg-uoft   File: DTMStringPool.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Create a DTMStringPool using the given chain size
 *
 * @param chainSize The size of the hash chain vector
 */
public DTMStringPool(int chainSize)
  {
    m_intToString=new Vector();
    m_hashChain=new IntVector(chainSize);
    removeAllElements();

    // -sb Add this to force empty strings to be index 0.
    stringToIndex("");
  }
 
Example #28
Source Project: openjdk-8-source   Author: keerath   File: DTMAxisIterNodeList.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Public constructor: Wrap a DTMNodeList around an existing
 * and preconfigured DTMAxisIterator
 */
public DTMAxisIterNodeList(DTM dtm, DTMAxisIterator dtmAxisIterator) {
    if (dtmAxisIterator == null) {
        m_last = 0;
    } else {
        m_cachedNodes = new IntVector();
        m_dtm = dtm;
    }
    m_iter = dtmAxisIterator;
}
 
Example #29
Source Project: openjdk-8-source   Author: keerath   File: SAX2RTFDTM.java    License: GNU General Public License v2.0 5 votes vote down vote up
public SAX2RTFDTM(DTMManager mgr, Source source, int dtmIdentity,
               DTMWSFilter whiteSpaceFilter,
               XMLStringFactory xstringfactory,
               boolean doIndexing)
{
  super(mgr, source, dtmIdentity, whiteSpaceFilter,
        xstringfactory, doIndexing);

  // NEVER track source locators for RTFs; they aren't meaningful. I think.
  // (If we did track them, we'd need to tail-prune these too.)
  //com.sun.org.apache.xalan.internal.processor.TransformerFactoryImpl.m_source_location;
  m_useSourceLocationProperty=false;
  m_sourceSystemId = (m_useSourceLocationProperty) ? new StringVector()
                                                   : null;
  m_sourceLine = (m_useSourceLocationProperty) ? new IntVector() : null;
  m_sourceColumn = (m_useSourceLocationProperty) ? new IntVector() : null;

  // Record initial sizes of fields that are pushed and restored
  // for RTF tail-pruning.  More entries can be popped than pushed, so
  // we need this to mark the primordial state of the DTM.
  m_emptyNodeCount = m_size;
  m_emptyNSDeclSetCount = (m_namespaceDeclSets == null)
                               ? 0 : m_namespaceDeclSets.size();
  m_emptyNSDeclSetElemsCount = (m_namespaceDeclSetElements == null)
                                    ? 0 : m_namespaceDeclSetElements.size();
  m_emptyDataCount = m_data.size();
  m_emptyCharsCount = m_chars.size();
  m_emptyDataQNCount = m_dataOrQName.size();
}
 
Example #30
Source Project: openjdk-8-source   Author: keerath   File: DTMStringPool.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Create a DTMStringPool using the given chain size
 *
 * @param chainSize The size of the hash chain vector
 */
public DTMStringPool(int chainSize)
  {
    m_intToString=new Vector();
    m_hashChain=new IntVector(chainSize);
    removeAllElements();

    // -sb Add this to force empty strings to be index 0.
    stringToIndex("");
  }