public class NoteReader extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
NoteReader.NoteParseMode
Notes can be represented in two XML formats.
|
private class |
NoteReader.Parser
SAX handler to read note information from its XML representation.
|
Modifier and Type | Field and Description |
---|---|
private InputSource |
inputSource |
private List<Note> |
parsedNotes |
Constructor and Description |
---|
NoteReader(InputStream source)
Initializes the reader with a given InputStream
|
NoteReader(String source)
Initializes the reader with a string as a source
|
private InputSource inputSource
private List<Note> parsedNotes
public NoteReader(InputStream source) throws IOException
source
- - InputStream containing Notes XMLIOException
public NoteReader(String source) throws IOException
source
- UTF-8 string containing Notes XML to parseIOException
public List<Note> parse() throws SAXException, IOException
SAXException
IOException