public interface Reader extends InputNotifier<Processor>
InputNotifier that reads data from a file.
It correspond to the head of the parsing process in case of an import.
| Modifier and Type | Method and Description |
|---|---|
Processor |
defaultProcessor()
Creates a series of processors in order to build and analyze the read structure.
|
void |
read(InputStream stream)
Reads a stream and notifies registered
Processor. |
addHandler, getHandlers, hasHandler, notifyAttribute, notifyCharacters, notifyEndDocument, notifyEndElement, notifyReference, notifyStartDocument, notifyStartElementProcessor defaultProcessor()
void read(InputStream stream) throws IOException
Processor.stream - the stream to readIllegalArgumentException - if this reader hasn't any handlerIOException - if an error occurred during the I/O processCopyright © 2013–2017 Atlanmod INRIA LINA Mines Nantes. All rights reserved.