Package java.util

Examples of java.util.Stack.elementAt()


      _prefixArray = new String[_prefixCount];
      Enumeration p = _nsPrefixes.keys();
      while (p.hasMoreElements()) {
    final String prefix = (String)p.nextElement();
    final Stack stack = (Stack)_nsPrefixes.get(prefix);
    final Integer I = (Integer)stack.elementAt(0);
    _prefixArray[I.shortValue()] = prefix;
      }
  }
 
  /**
 
View Full Code Here


      }
      else {
    _nextSibling2[attr-1] = attr;
      }
      _nextSibling2[attr] = DOM.NULL;
      _prefix2[attr] = ((Integer) stack.elementAt(0)).shortValue();
  }

  private Stack definePrefixAndUri(String prefix, String uri)
      throws SAXException
  {
View Full Code Here

        m_formatSpecification = new PatternRun[ elementCount ];

        for( int i = 0; i < elementCount; i++ )
        {
            m_formatSpecification[ i ] = (PatternRun)stack.elementAt( i );
        }
    }

}
View Full Code Here

            if (i > 1) {
                // not before the filesystem root and not after it, since root
                // already contains one
                sb.append(File.separatorChar);
            }
            sb.append(s.elementAt(i));
        }


        path = sb.toString();
        if (dosWithDrive) {
View Full Code Here

            if (i > 1) {
                // not before the filesystem root and not after it, since root
                // already contains one
                sb.append(File.separatorChar);
            }
            sb.append(s.elementAt(i));
        }
        return new File(sb.toString());
    }

    /**
 
View Full Code Here

            if (i > 1) {
                // not before the filesystem root and not after it, since root
                // already contains one
                sb.append(File.separatorChar);
            }
            sb.append(s.elementAt(i));
        }


        aPath = sb.toString();
        if (dosWithDrive) {
View Full Code Here

        }

        // Identify any tags left on the stack.
        String lastFound = ""; // Skip multiples, like <b>...<b>
        for (int i = 0; i < htmlStack.size(); i++) {
            final HtmlTag htag = (HtmlTag) htmlStack.elementAt(i);
            if (!isSingleTag(htag)
                && !htag.getId().equals(lastFound)
                && !typeParameters.contains(htag.getId()))
            {
                log(htag.getLineno(), htag.getPosition(), UNCLOSED_HTML, htag);
View Full Code Here

       
        //-- rebuild URL
        StringBuffer buffer = new StringBuffer(absoluteURL.length());
        for (int i = 0; i < tokens.size(); i++) {
            if (i > 0) buffer.append(HREF_PATH_SEP);
            buffer.append(tokens.elementAt(i).toString());
        }
        return buffer.toString();
    } //-- normalize
   
   
View Full Code Here

            if (i > 1) {
                // not before the filesystem root and not after it, since root
                // already contains one
                sb.append(File.separatorChar);
            }
            sb.append(s.elementAt(i));
        }
        return new File(sb.toString());
    }

    /**
 
View Full Code Here

       * if matching tag is on the stack, pop until we
       * get there.  Otherwise ignore the closing tag
       */

      for (int i=stack.size()-2;i>0;i--) {
          Node node=((StackInfo)stack.elementAt(i)).parent;
          String tag = node.getTag();
          if (tag.equals(name)) {
        while (++i <= stack.size()) {
            /*
            System.out.println("popping " +
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.