String pszReturn;
    public static String fetchVariable(byte[] pszRecord, int nMaxChars,                                       char nDelimChar1, char nDelimChar2,                                       MutableInt pnConsumedChars) {        int i;        String pszReturn;        for (i = 0; i < nMaxChars - 1 && pszRecord[i] != nDelimChar1                && pszRecord[i] != nDelimChar2; i++) {        }        pnConsumedChars.value = i;        if (i < nMaxChars                && (pszRecord[i] == nDelimChar1 || pszRecord[i] == nDelimChar2)) {            pnConsumedChars.value++;        }        byte[] pszReturnBytes = new byte[i];        System.arraycopy(pszRecord, 0, pszReturnBytes, 0, i);        return new String(pszReturnBytes);    }