The XMLInputStream class contains the following methods:
close closes the stream and releases system resources.
createOutputStream constructs an XMLOutputStream with the appropriate initial state.
read retrieves the next Unicode character in the input stream.
setEncoding defines the character encoding of the input stream.