This implementation works with the assumption that each of its users will read the XML data fully contained within another tag.
The instantiator of this class will create a new instance of this class when it encounters a tag that it wants the "user" to read from. The instantiator creates a new ExportReader and passes it over to the user. It is guaranteed that the user cannot read past the end tag (to the user, it appears she reached the end of the document). When the ExportReader reaches the "end" of document, the wrapped XML stream will have read the end tag of the start tag that the instantiator first encountered. The current state of the wrapped XML reader will therefore be END_ELEMENT. @author Lukas Krejci
|
|
|
|