Class UnpickV2Reader
java.lang.Object
daomephsta.unpick.constantmappers.datadriven.parser.v2.UnpickV2Reader
- All Implemented Interfaces:
Closeable,AutoCloseable
Performs basic syntax checking on .unpick v2 format text,
and allows its structure to be visited by instances of
UnpickV2Reader.Visitor.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfaceA visitor for visiting the structure of .unpick v2 format text. -
Constructor Summary
ConstructorsConstructorDescriptionUnpickV2Reader(InputStream definitionsStream) Creates a new reader from an input stream.UnpickV2Reader(Reader definitionsReader) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(UnpickV2Reader.Visitor visitor) Makesvisitorvisit the structure of the parsed file.voidclose()
-
Constructor Details
-
UnpickV2Reader
Creates a new reader from an input stream.- Parameters:
definitionsStream- a stream of text in .unpick v2 format
-
UnpickV2Reader
-
-
Method Details
-
accept
Makesvisitorvisit the structure of the parsed file.- Parameters:
visitor- the visitor
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-