Class NoteWriter

java.lang.Object
org.openstreetmap.josm.io.XmlWriter
org.openstreetmap.josm.io.NoteWriter
All Implemented Interfaces:
Closeable, AutoCloseable

public class NoteWriter extends XmlWriter
Class to write a collection of notes out to XML. The format is that of the note dump file with the addition of one attribute in the comment element to indicate if the comment is a new local comment that has not been uploaded to the OSM server yet.
Since:
7732
  • Constructor Details

    • NoteWriter

      public NoteWriter(PrintWriter out)
      Create a NoteWriter that will write to the given PrintWriter
      Parameters:
      out - PrintWriter to write XML to
    • NoteWriter

      public NoteWriter(OutputStream out)
      Create a NoteWriter that will write to a given OutputStream.
      Parameters:
      out - OutputStream to write XML to
  • Method Details

    • write

      public void write(NoteData data)
      Write notes to designated output target
      Parameters:
      data - Note collection to write
    • writeComment

      private void writeComment(NoteComment comment)