Package org.openstreetmap.josm.io
Class ValidatorErrorWriter
- java.lang.Object
-
- org.openstreetmap.josm.io.XmlWriter
-
- org.openstreetmap.josm.io.ValidatorErrorWriter
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.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(java.io.OutputStream out)
Constructs a newValidatorErrorWriter
that will write to a givenOutputStream
.ValidatorErrorWriter(java.io.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(java.util.Collection<TestError> validationErrors)
Write validator errors to designated output target
-
-
-
Constructor Detail
-
ValidatorErrorWriter
public ValidatorErrorWriter(java.io.PrintWriter out)
Constructs a newValidatorErrorWriter
that will write to the givenPrintWriter
.- Parameters:
out
- PrintWriter to write XML to
-
ValidatorErrorWriter
public ValidatorErrorWriter(java.io.OutputStream out)
Constructs a newValidatorErrorWriter
that will write to a givenOutputStream
.- Parameters:
out
- OutputStream to write XML to
-
-