java.io
Class ObjectOutputStream.Stack

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.ArrayList
                    |
                    +--java.io.ObjectOutputStream.Stack

static final class ObjectOutputStream.Stack
extends ArrayList

Unsynchronized Stack.

See Also:
Serialized Form

Inner classes inherited from class java.util.AbstractList
AbstractList.Itr, AbstractList.ListItr
 
Fields inherited from class java.util.ArrayList
elementData, size
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
(package private) ObjectOutputStream.Stack()
           
 
Method Summary
(package private)  Object peek()
          Looks at the object at the top of this stack without removing it from the stack.
(package private)  Object pop()
          Removes the object at the top of this stack and returns that object as the value of this function.
(package private)  Object push(Object item)
           
(package private)  void setSize(int newSize)
           
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, RangeCheck, readObject, remove, removeRange, set, size, toArray, toArray, trimToSize, writeObject
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

ObjectOutputStream.Stack

ObjectOutputStream.Stack()
Method Detail

setSize

void setSize(int newSize)

push

Object push(Object item)

pop

Object pop()
Removes the object at the top of this stack and returns that object as the value of this function.
Returns:
The object at the top of this stack (the last item of the Vector object).
Throws:
EmptyStackException - if this stack is empty.

peek

Object peek()
Looks at the object at the top of this stack without removing it from the stack.
Returns:
the object at the top of this stack (the last item of the Vector object).
Throws:
EmptyStackException - if this stack is empty.