|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
java.util.LinkedList
edu.harvard.hul.ois.jhove.module.html.HtmlStack
public class HtmlStack
A LinkedList dressed up as a stack for processing HTML objects. It knows about certain elements and their history on the stack.
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
HtmlStack()
|
Method Summary | |
---|---|
protected boolean |
excludesTag(java.lang.String tag)
Returns true if any element on the stack
prohibits the specified tag. |
protected boolean |
isBodySeen()
Returns true if a BODY element has been
pushed on the stack. |
protected boolean |
isHeadSeen()
Returns true if a HEAD element has been
pushed on the stack. |
protected void |
popp()
Pops top element from element stack. |
protected void |
popTo(int idx)
Pops elements from the stack up to and including the one indexed by idx |
protected void |
push(JHOpenTag tag)
Pushes an element onto the stack. |
protected int |
search(java.lang.String tag)
Searches backwards through the element stack for a match to a given tag. |
protected void |
setBodyElement(HtmlTagDesc elem)
Sets the value of the HEAD element for easy comparison |
protected void |
setFramesetElement(HtmlTagDesc elem)
Sets the value of the HEAD element for easy comparison |
protected void |
setHeadElement(HtmlTagDesc elem)
Sets the value of the HEAD element for easy comparison |
protected JHOpenTag |
top()
Gets the top of the element stack without popping it. |
Methods inherited from class java.util.LinkedList |
---|
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, toArray, toArray |
Methods inherited from class java.util.AbstractSequentialList |
---|
iterator |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, listIterator, removeRange, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, isEmpty, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList |
Methods inherited from interface java.util.Deque |
---|
iterator |
Constructor Detail |
---|
public HtmlStack()
Method Detail |
---|
protected void setHeadElement(HtmlTagDesc elem)
protected void setBodyElement(HtmlTagDesc elem)
protected void setFramesetElement(HtmlTagDesc elem)
protected void popp()
protected void push(JHOpenTag tag)
protected JHOpenTag top()
protected int search(java.lang.String tag)
protected void popTo(int idx)
protected boolean isHeadSeen()
true
if a HEAD element has been
pushed on the stack.
protected boolean isBodySeen()
true
if a BODY element has been
pushed on the stack.
protected boolean excludesTag(java.lang.String tag)
true
if any element on the stack
prohibits the specified tag.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |