public class NoteWriterFactory extends Object
Modifier and Type | Field and Description |
---|---|
static int |
EXPORT_DEFAULT_MAX_POSTS
Maximum of posts to export
|
Modifier and Type | Method and Description |
---|---|
static void |
addWriter(String exportFormat,
NoteWriter writer)
Adds a new writer or replaces an existing writer for the given export format.
|
static NoteWriter |
getExporter(ExportFormat exportFormat) |
static NoteWriter |
getExporter(String exportFormat) |
static void |
removeWriter(String exportFormat)
Removes the writer for the given export format.
|
public static final int EXPORT_DEFAULT_MAX_POSTS
public static void addWriter(String exportFormat, NoteWriter writer)
exportFormat
- The export format.writer
- The writer.public static NoteWriter getExporter(ExportFormat exportFormat)
exportFormat
- The export format.public static NoteWriter getExporter(String exportFormat)
exportFormat
- The export format.public static void removeWriter(String exportFormat)
exportFormat
- The export format.Copyright © 2019 Communote team. All rights reserved.