Class ValidatorErrorWriter

    • Field Summary

      • Fields inherited from class org.openstreetmap.josm.io.XmlWriter

        out
    • Constructor Summary

      Constructors 
      Constructor Description
      ValidatorErrorWriter​(java.io.OutputStream out)
      Constructs a new ValidatorErrorWriter that will write to a given OutputStream.
      ValidatorErrorWriter​(java.io.PrintWriter out)
      Constructs a new ValidatorErrorWriter that will write to the given PrintWriter.
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ValidatorErrorWriter

        public ValidatorErrorWriter​(java.io.PrintWriter out)
        Constructs a new ValidatorErrorWriter that will write to the given PrintWriter.
        Parameters:
        out - PrintWriter to write XML to
      • ValidatorErrorWriter

        public ValidatorErrorWriter​(java.io.OutputStream out)
        Constructs a new ValidatorErrorWriter that will write to a given OutputStream.
        Parameters:
        out - OutputStream to write XML to
    • Method Detail

      • write

        public void write​(java.util.Collection<TestError> validationErrors)
                   throws java.io.IOException
        Write validator errors to designated output target
        Parameters:
        validationErrors - Test error collection to write
        Throws:
        java.io.IOException - in case of I/O error