mrglavas 2003/10/17 11:14:30 Modified: java/src/org/apache/xerces/util IntStack.java Log: Add a method which returns the integer value of the element at a given depth in the stack. This method is used by the XInclude implementation. Submitted by Peter McCracken. Revision Changes Path 1.4 +6 -1 xml-xerces/java/src/org/apache/xerces/util/IntStack.java Index: IntStack.java =================================================================== RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/util/IntStack.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- IntStack.java 8 Aug 2002 20:47:13 -0000 1.3 +++ IntStack.java 17 Oct 2003 18:14:30 -0000 1.4 @@ -98,6 +98,11 @@ return fData[fDepth - 1]; } + /** Returns the element at the specified depth in the stack. */ + public int elementAt(int depth) { + return fData[depth]; + } + /** Pops a value off of the stack. */ public int pop() { return fData[--fDepth];
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]