Package org.openstreetmap.josm.io
Class NoteWriter
java.lang.Object
org.openstreetmap.josm.io.XmlWriter
org.openstreetmap.josm.io.NoteWriter
- All Implemented Interfaces:
Closeable,AutoCloseable
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
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionNoteWriter(OutputStream out) Create a NoteWriter that will write to a given OutputStream.NoteWriter(PrintWriter out) Create a NoteWriter that will write to the given PrintWriter -
Method Summary
Modifier and TypeMethodDescriptionvoidWrite notes to designated output targetprivate voidwriteComment(NoteComment comment)
-
Constructor Details
-
NoteWriter
Create a NoteWriter that will write to the given PrintWriter- Parameters:
out- PrintWriter to write XML to
-
NoteWriter
Create a NoteWriter that will write to a given OutputStream.- Parameters:
out- OutputStream to write XML to
-
-
Method Details
-
write
Write notes to designated output target- Parameters:
data- Note collection to write
-
writeComment
-