include_filename = com.cosylab.vdct.util.StringUtils.replaceFileName(fileName, include_filename);
if (!(include_filename.charAt(0)=='/' || include_filename.charAt(0)=='\\' || (include_filename.length()>1 && include_filename.charAt(1)==':'))) include_filename = com.cosylab.vdct.util.StringUtils.replaceFileName(fileName, include_filename);
public static void processFields(DBRecordData rd, StreamTokenizer tokenizer, String fileName) throws Exception {	DBFieldData fd;		String name;	String value;	String comment = nullString;	String include_filename;	StreamTokenizer inctokenizer = null;		if (rd!=null)		/********************** fields area *************************/			while (tokenizer.nextToken() != tokenizer.TT_EOF) 		if (tokenizer.ttype == tokenizer.TT_WORD) 			if (tokenizer.sval.equals(ENDSTR)) break;			else if (tokenizer.sval.startsWith(DBConstants.commentString)) 				comment+=processComment(null, tokenizer, fileName);			else if (tokenizer.sval.equalsIgnoreCase(FIELD)) {				// read field_name				tokenizer.nextToken();				if ((tokenizer.ttype == tokenizer.TT_WORD) ||					(tokenizer.ttype == DBConstants.quoteChar)) name=tokenizer.sval;				else throw (new DBParseException("Invalid field_name...", tokenizer, fileName));									// read field_value				tokenizer.nextToken();				if (tokenizer.ttype == DBConstants.quoteChar) value=tokenizer.sval;				else throw (new DBParseException("Invalid field_value...", tokenizer, fileName));				fd = new DBFieldData(name, value);				fd.setComment(comment);	comment = nullString;				rd.addField(fd);			}			else if (tokenizer.sval.equalsIgnoreCase(INCLUDE)) {				// read incude_filename				tokenizer.nextToken();				if (tokenizer.ttype == DBConstants.quoteChar) include_filename=tokenizer.sval;				else throw (new DBParseException("Invalid include_filename...", tokenizer, fileName));				include_filename = com.cosylab.vdct.util.StringUtils.replaceFileName(fileName, include_filename);				inctokenizer = getStreamTokenizer(include_filename);				if (inctokenizer!=null) processFields(rd, inctokenizer, include_filename);			}								/***********************************************************/}