Package org.h2gis.functions.io.gpx.model
Class StringStack
java.lang.Object
org.h2gis.functions.io.gpx.model.StringStack
This class is a stack to keep in memory the structure of the GPX file.
- Author:
- Erwan Bocher and Antonin Piasco
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StringStack
public StringStack(int capacity) Instantiates a StringStack with chosen max size.- Parameters:
capacity- max size
-
-
Method Details
-
push
Puts string in the stack.- Parameters:
newText- A new string to put in the stack- Returns:
- false if the stack is full
-
pop
Removes the last string of the stack.- Returns:
- the last string of the stack, null if the stack is empty
-