public class NoteWriter extends XmlWriter
Modifier and Type | Field and Description |
---|---|
private SimpleDateFormat |
ISO8601_FORMAT |
Constructor and Description |
---|
NoteWriter(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
|
Modifier and Type | Method and Description |
---|---|
void |
write(NoteData data)
Write notes to designated output target
|
private void |
writeComment(NoteComment comment) |
private final SimpleDateFormat ISO8601_FORMAT
public NoteWriter(PrintWriter out)
out
- PrintWriter to write XML topublic NoteWriter(OutputStream out)
out
- OutputStream to write XML topublic void write(NoteData data)
data
- Note collection to writeprivate void writeComment(NoteComment comment)