This method of the XMLInputStream class closes the stream and releases system resources.
public void close() throws IOException;
IOException if the stream cannot be closed.