Package com.dd.plist
Class ParsedObjectStack
java.lang.Object
com.dd.plist.ParsedObjectStack
Keeps track of the stack of parsed objects in a binary property list.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ParsedObjectStackempty()Creates a new stack containing only the specified object identifier.push(int obj) Tries to push the specified object identifier onto the stack, checking that it is not already on the stack.private voidthrowIfOnStack(int obj)
-
Field Details
-
parent
-
object
private int object
-
-
Constructor Details
-
ParsedObjectStack
-
-
Method Details
-
empty
Creates a new stack containing only the specified object identifier.- Returns:
- The stack.
-
push
Tries to push the specified object identifier onto the stack, checking that it is not already on the stack.- Parameters:
obj- The object identifier.- Returns:
- The new stack with the added object identifier.
- Throws:
PropertyListFormatException- The stack already contained that object identifier, indicating a cyclic reference in the property list.
-
throwIfOnStack
- Throws:
PropertyListFormatException
-