The XMLStreamReader interface contains the following methods:
close closes the input stream.
open opens the input stream from a given URL.
read reads characters into a portion of an array.
setEncoding defines the character encoding of the input stream.