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

The following examples show how to use com.sun.org.apache.xml.internal.utils.IntVector. These examples are extracted from open source projects. 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
/**
 * 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   Source 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   Source 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
/**
 * 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   Source 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   Source 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   Source 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   Source 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   Source 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   Source 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   Source 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   Source 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
/**
 * 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   Source 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   Source 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
/**
 * 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
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
/**
 * 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   Source 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   Source 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   Source 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
/**
 * 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   Source 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   Source 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   Source 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   Source 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   Source 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
/**
 * 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   Source 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
/**
 * 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("");
  }