if (line.equals("<BugCollection>"))
if (line.startsWith("<BugCollection"))
	private void checkInputStream(InputStream in) throws IOException {		if (in.markSupported()) {			byte[] buf = new byte[60];			in.mark(buf.length);			int numRead = 0;			while (numRead < buf.length) {				int n = in.read(buf, numRead, buf.length - numRead);				if (n < 0)					throw new IOException("XML does not contain saved bug data");				numRead += n;			}			in.reset();			BufferedReader reader = new BufferedReader(new InputStreamReader(new ByteArrayInputStream(buf)));			String line;			while ((line = reader.readLine()) != null) {				if (line.equals("<BugCollection>"))					return;			}			throw new IOException("XML does not contain saved bug data");		}	}