Package org.sosy_lab.common.io
Class PathCounterTemplate
java.lang.Object
org.sosy_lab.common.io.PathCounterTemplate
A template for
Path objects that uses a counter to produce paths with a fresh new name
for every request.-
Method Summary
Modifier and TypeMethodDescriptionConstruct a concretePaththat was not handed out by this instance before.Returns the raw template of this instance.static PathCounterTemplateofFormatString(String pTemplate) Create a new instance.toString()
-
Method Details
-
ofFormatString
Create a new instance.- Parameters:
pTemplate- A non-null non-empty template String in the format forString.format(String, Object...)that is suited for exactly one argument of type int.- Throws:
IllegalFormatException- If the template is invalid.
-
getFreshPath
Construct a concretePaththat was not handed out by this instance before.- Throws:
IllegalFormatException- If the template is invalid, or the arguments does not match the template.
-
getTemplate
Returns the raw template of this instance. -
toString
-