Package org.openstreetmap.josm.io
Class ValidatorErrorWriter
java.lang.Object
org.openstreetmap.josm.io.XmlWriter
org.openstreetmap.josm.io.ValidatorErrorWriter
- All Implemented Interfaces:
Closeable,AutoCloseable
Class to write a collection of validator errors out to XML.
The format is inspired by the
Osmose API issues file format
- Since:
- 12667
-
Nested Class Summary
Nested Classes -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newValidatorErrorWriterthat will write to a givenOutputStream.Constructs a newValidatorErrorWriterthat will write to the givenPrintWriter. -
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(Collection<TestError> validationErrors) Write validator errors to designated output target
-
Constructor Details
-
ValidatorErrorWriter
Constructs a newValidatorErrorWriterthat will write to the givenPrintWriter.- Parameters:
out- PrintWriter to write XML to
-
ValidatorErrorWriter
Constructs a newValidatorErrorWriterthat will write to a givenOutputStream.- Parameters:
out- OutputStream to write XML to
-
-
Method Details
-
write
Write validator errors to designated output target- Parameters:
validationErrors- Test error collection to write- Throws:
IOException- in case of I/O error
-