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
public class ValidatorErrorWriter extends XmlWriter
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 Modifier and Type Class Description private static class
ValidatorErrorWriter.ErrorClass
-
Constructor Summary
Constructors Constructor Description ValidatorErrorWriter(OutputStream out)
Constructs a newValidatorErrorWriter
that will write to a givenOutputStream
.ValidatorErrorWriter(PrintWriter out)
Constructs a newValidatorErrorWriter
that will write to the givenPrintWriter
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
write(Collection<TestError> validationErrors)
Write validator errors to designated output target
-
-
-
Constructor Detail
-
ValidatorErrorWriter
public ValidatorErrorWriter(PrintWriter out)
Constructs a newValidatorErrorWriter
that will write to the givenPrintWriter
.- Parameters:
out
- PrintWriter to write XML to
-
ValidatorErrorWriter
public ValidatorErrorWriter(OutputStream out)
Constructs a newValidatorErrorWriter
that will write to a givenOutputStream
.- Parameters:
out
- OutputStream to write XML to
-
-
Method Detail
-
write
public void write(Collection<TestError> validationErrors) throws IOException
Write validator errors to designated output target- Parameters:
validationErrors
- Test error collection to write- Throws:
IOException
- in case of I/O error
-
-