Class LocationStack
java.lang.Object
com.itextpdf.pdfoptimizer.report.location.LocationStack
The class allows to build custom analogue of the stacktrace which does not use reflection. The goal is to support fast and light-weighted mechanism of identifying the root of any messages appeared during optimization process.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
enterLocation
(String location) Add a new location into location stack.Gets string representation for top-level location which is consider as actual location.Gets string representation full location stack.void
Removes top-level location from location stack.
-
Constructor Details
-
LocationStack
public LocationStack()
-
-
Method Details
-
enterLocation
Add a new location into location stack.- Parameters:
-
location
- is a string representation of the new location
-
leaveLocation
public void leaveLocation()Removes top-level location from location stack. -
getCurrentLocation
Gets string representation for top-level location which is consider as actual location.- Returns:
- string representation for top-level location
-
getFullStack
Gets string representation full location stack.- Returns:
- string representation for location stack
-