void addEntry(final String aLine) {
		final String trimmed = aLine.replaceAll("^>*", "");
		String[] tokens = trimmed.split("\t");

		// Now strip the empty entries
		final Vector<String> v = new Vector<String>();
		for (int i = 0; i < tokens.length; i++) {
			if (!"".equals(tokens[i])) {
				v.add(tokens[i]);
			}
		}
		tokens = new String[v.size()];
		tokens = v.toArray(tokens);

		if (tokens.length > 0) {
			final String tok = tokens[0].trim();
			try {
				if (tok.startsWith("0x")) {
					this.checkBytesFrom = Integer.parseInt(tok.substring(2), 16);
				} else {
					this.checkBytesFrom = Integer.parseInt(tok);
				}
			} catch (final NumberFormatException e) {
				// We could have a space delinitaed entry so lets try to handle
				// this anyway
				addEntry(trimmed.replaceAll("  ", "\t"));
				return;
			}
		}
		if (tokens.length > 1) {
			this.typeStr = tokens[1].trim();
			this.type = getType(this.typeStr);
		}
		if (tokens.length > 2) {
			// We don't trim the content
			this.content = ltrim(tokens[2]);
			this.content = stringWithEscapeSubstitutions(this.content);
		}
		if (tokens.length > 3) {
			this.mimeType = tokens[3].trim();
		}
		if (tokens.length > 4) {
			this.mimeEnc = tokens[4].trim();
		}
	}
void addEntry ( final String aLine ) { final String trimmed = aLine . replaceAll ( "^>*" , "" ) ; String [ ] tokens = trimmed . split ( "\t" ) ; final Vector < String > v = new Vector < String > ( ) ; for ( int i = 0 ; i < tokens . length ; i ++ ) { if ( ! "" . equals ( tokens [ i ] ) ) { v . add ( tokens [ i ] ) ; } } tokens = new String [ v . size ( ) ] ; tokens = v . toArray ( tokens ) ; if ( tokens . length > 0 ) { final String tok = tokens [ 0 ] . trim ( ) ; try { if ( tok . startsWith ( "0x" ) ) { this . checkBytesFrom = Integer . parseInt ( tok . substring ( 2 ) , 16 ) ; } else { this . checkBytesFrom = Integer . parseInt ( tok ) ; } } catch ( final NumberFormatException e ) { addEntry ( trimmed . replaceAll ( "  " , "\t" ) ) ; return ; } } if ( tokens . length > 1 ) { this . typeStr = tokens [ 1 ] . trim ( ) ; this . type = getType ( this . typeStr ) ; } if ( tokens . length > 2 ) { this . content = ltrim ( tokens [ 2 ] ) ; this . content = stringWithEscapeSubstitutions ( this . content ) ; } if ( tokens . length > 3 ) { this . mimeType = tokens [ 3 ] . trim ( ) ; } if ( tokens . length > 4 ) { this . mimeEnc = tokens [ 4 ] . trim ( ) ; } }
as much of the file as possible. Currently about 70 entries are incorrect