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 classValidatorErrorWriter.ErrorClass
-
Constructor Summary
Constructors Constructor Description ValidatorErrorWriter(java.io.OutputStream out)Constructs a newValidatorErrorWriterthat will write to a givenOutputStream.ValidatorErrorWriter(java.io.PrintWriter out)Constructs a newValidatorErrorWriterthat will write to the givenPrintWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(java.util.Collection<TestError> validationErrors)Write validator errors to designated output target
-
-
-
Constructor Detail
-
ValidatorErrorWriter
public ValidatorErrorWriter(java.io.PrintWriter out)
Constructs a newValidatorErrorWriterthat will write to the givenPrintWriter.- Parameters:
out- PrintWriter to write XML to
-
ValidatorErrorWriter
public ValidatorErrorWriter(java.io.OutputStream out)
Constructs a newValidatorErrorWriterthat will write to a givenOutputStream.- Parameters:
out- OutputStream to write XML to
-
-