當前位置: 首頁>>代碼示例>>Java>>正文


Java CsvReader.get方法代碼示例

本文整理匯總了Java中com.csvreader.CsvReader.get方法的典型用法代碼示例。如果您正苦於以下問題:Java CsvReader.get方法的具體用法?Java CsvReader.get怎麽用?Java CsvReader.get使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.csvreader.CsvReader的用法示例。


在下文中一共展示了CsvReader.get方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getBikeValue

import com.csvreader.CsvReader; //導入方法依賴的package包/類
public long getBikeValue(CsvReader creader) throws IOException {
    String tmpValue = creader.get(HEADER_BIKE_VALUE_DE);
    if (tmpValue != null && !tmpValue.isEmpty()) {
        return Long.parseLong(tmpValue);
    } else {
        return 0;
    }
}
 
開發者ID:tiweGH,項目名稱:OpenDiabetes,代碼行數:9,代碼來源:GoogleFitCsvValidator.java

示例2: getWalkValue

import com.csvreader.CsvReader; //導入方法依賴的package包/類
public long getWalkValue(CsvReader creader) throws IOException {
    String tmpValue = creader.get(HEADER_WALK_VALUE_DE);
    if (tmpValue != null && !tmpValue.isEmpty()) {
        return Long.parseLong(tmpValue);
    } else {
        return 0;
    }
}
 
開發者ID:tiweGH,項目名稱:OpenDiabetes,代碼行數:9,代碼來源:GoogleFitCsvValidator.java

示例3: getRunValue

import com.csvreader.CsvReader; //導入方法依賴的package包/類
public long getRunValue(CsvReader creader) throws IOException {
    String tmpValue = creader.get(HEADER_RUN_VALUE_DE);
    if (tmpValue != null && !tmpValue.isEmpty()) {
        return Long.parseLong(tmpValue);
    } else {
        return 0;
    }
}
 
開發者ID:tiweGH,項目名稱:OpenDiabetes,代碼行數:9,代碼來源:GoogleFitCsvValidator.java

示例4: getMaxSpeedValue

import com.csvreader.CsvReader; //導入方法依賴的package包/類
public double getMaxSpeedValue(CsvReader creader) throws IOException {
    String tmpValue = creader.get(HEADER_MAX_SPEED_VALUE_DE);
    if (tmpValue != null && !tmpValue.isEmpty()) {
        return Double.parseDouble(tmpValue);
    } else {
        return 0;
    }
}
 
開發者ID:tiweGH,項目名稱:OpenDiabetes,代碼行數:9,代碼來源:GoogleFitCsvValidator.java

示例5: getRawValues

import com.csvreader.CsvReader; //導入方法依賴的package包/類
public String getRawValues(CsvReader creader) throws IOException {
    switch (languageSelection) {
        case DE:
            return creader.get(CARELINK_HEADER_DE_VALUE);
        case EN:
            throw new UnsupportedOperationException("Not supported yet.");
        default:
            Logger.getLogger(this.getClass().getName()).severe("ASSERTION ERROR!");
            throw new AssertionError();
    }
}
 
開發者ID:tiweGH,項目名稱:OpenDiabetes,代碼行數:12,代碼來源:MedtronicCsvValidator.java

示例6: getNotes

import com.csvreader.CsvReader; //導入方法依賴的package包/類
/**
 * Returns the notes for the given CsvReader.
 *
 * @param creader The CsvReader instance.
 * @return String The notes.
 * @throws IOException If the file could not be opened.
 */
public String getNotes(final CsvReader creader) throws IOException {
    switch (languageSelection) {
        case DE:
            throw new UnsupportedOperationException("Not supported yet.");
        case EN:
            return creader.get(MY_SUGR_HEADER_EN_NOTE);
        default:
            Logger.getLogger(this.getClass().getName()).severe("ASSERTION ERROR!");
            throw new AssertionError();
    }
}
 
開發者ID:lucasbuschlinger,項目名稱:BachelorPraktikum,代碼行數:19,代碼來源:MySugrCSVValidator.java

示例7: getRawValues

import com.csvreader.CsvReader; //導入方法依賴的package包/類
/**
 * Getter for the raw values.
 *
 * @param creader The CSV reader to use.
 * @return The raw values.
 * @throws IOException Thrown when reading the data goes wrong.
 * @throws UnsupportedOperationException Thrown if English header is selected.
 */
public String getRawValues(final CsvReader creader) throws IOException, UnsupportedOperationException {
    switch (languageSelection) {
        case DE:
            return creader.get(CARELINK_HEADER_DE_VALUE);
        case EN:
            throw new UnsupportedOperationException("Not supported yet.");
        default:
            Logger.getLogger(this.getClass().getName()).severe("ASSERTION ERROR!");
            throw new AssertionError();
    }
}
 
開發者ID:lucasbuschlinger,項目名稱:BachelorPraktikum,代碼行數:20,代碼來源:MedtronicCSVValidator.java

示例8: getRawSeqNum

import com.csvreader.CsvReader; //導入方法依賴的package包/類
/**
 * Getter for the sequential number.
 *
 * @param creader The CSV reader to use.
 * @return The raw sequential number.
 * @throws IOException Thrown when reading the data goes wrong.
 * @throws UnsupportedOperationException Thrown if English header is selected.
 */
public String getRawSeqNum(final CsvReader creader) throws IOException, UnsupportedOperationException {
    switch (languageSelection) {
        case DE:
            return creader.get(CARELINK_HEADER_DE_SEQ_NUM);
        case EN:
            throw new UnsupportedOperationException("Not supported yet.");
        default:
            Logger.getLogger(this.getClass().getName()).severe("ASSERTION ERROR!");
            throw new AssertionError();
    }
}
 
開發者ID:lucasbuschlinger,項目名稱:BachelorPraktikum,代碼行數:20,代碼來源:MedtronicCSVValidator.java

示例9: getInsulinMeal

import com.csvreader.CsvReader; //導入方法依賴的package包/類
/**
 * Returns the insulin meal for the given CsvReader.
 *
 * @param creader The CsvReader instance.
 * @return String The insulin meal.
 * @throws IOException If the file could not be opened.
 */
public String getInsulinMeal(final CsvReader creader) throws IOException {
    switch (languageSelection) {
        case DE:
            throw new UnsupportedOperationException("Not suppported yet.");
        case EN:
            return creader.get(MY_SUGR_HEADER_EN_INSULIN_INJECTION_UNITS_MEAL);
        default:
            Logger.getLogger(this.getClass().getName()).severe("ASSERTION ERROR!");
            throw new AssertionError();
    }
}
 
開發者ID:lucasbuschlinger,項目名稱:BachelorPraktikum,代碼行數:19,代碼來源:MySugrCSVValidator.java

示例10: getInsulinCorrection

import com.csvreader.CsvReader; //導入方法依賴的package包/類
/**
 * Returns the insulin injection correction units for the given CsvReader.
 *
 * @param creader The CsvReader instance.
 * @return String The insulin injection correction units.
 * @throws IOException If the file could not be opened.
 */
public String getInsulinCorrection(final CsvReader creader) throws IOException {
    switch (languageSelection) {
        case DE:
            throw new UnsupportedOperationException("Not suppported yet.");
        case EN:
            return creader.get(MY_SUGR_HEADER_EN_INSULIN_INJECTION_UNITS_CORRECTION);
        default:
            Logger.getLogger(this.getClass().getName()).severe("ASSERTION ERROR!");
            throw new AssertionError();
    }
}
 
開發者ID:lucasbuschlinger,項目名稱:BachelorPraktikum,代碼行數:19,代碼來源:MySugrCSVValidator.java

示例11: getRunValue

import com.csvreader.CsvReader; //導入方法依賴的package包/類
/**
 * Getter for the running value.
 *
 * @param creader The CSV reader to use.
 * @return The running value.
 * @throws IOException Thrown when reading the data goes wrong.
 */
public long getRunValue(final CsvReader creader) throws IOException {
    String tmpValue = creader.get(HEADER_RUN_VALUE_DE);
    if (tmpValue != null && !tmpValue.isEmpty()) {
        return Long.parseLong(tmpValue);
    } else {
        return 0;
    }
}
 
開發者ID:lucasbuschlinger,項目名稱:BachelorPraktikum,代碼行數:16,代碼來源:GoogleFitCSVValidator.java

示例12: getMaxSpeedValue

import com.csvreader.CsvReader; //導入方法依賴的package包/類
/**
 * Getter for the maximum velocity.
 *
 * @param creader The CSV reader to use.
 * @return The maximum velocity.
 * @throws IOException Thrown when reading the data goes wrong.
 */
public double getMaxSpeedValue(final CsvReader creader) throws IOException {
    String tmpValue = creader.get(HEADER_MAX_SPEED_VALUE_DE);
    if (tmpValue != null && !tmpValue.isEmpty()) {
        return Double.parseDouble(tmpValue);
    } else {
        return 0;
    }
}
 
開發者ID:lucasbuschlinger,項目名稱:BachelorPraktikum,代碼行數:16,代碼來源:GoogleFitCSVValidator.java

示例13: getBikeValue

import com.csvreader.CsvReader; //導入方法依賴的package包/類
/**
 * Getter for the biking value.
 *
 * @param creader The CSV reader to use.
 * @return The biking value.
 * @throws IOException Thrown when reading the data goes wrong.
 */
// TODO add language selection
public long getBikeValue(final CsvReader creader) throws IOException {
    String tmpValue = creader.get(HEADER_BIKE_VALUE_DE);
    if (tmpValue != null && !tmpValue.isEmpty()) {
        return Long.parseLong(tmpValue);
    } else {
        return 0;
    }
}
 
開發者ID:lucasbuschlinger,項目名稱:BachelorPraktikum,代碼行數:17,代碼來源:GoogleFitCSVValidator.java

示例14: getMealCarbs

import com.csvreader.CsvReader; //導入方法依賴的package包/類
/**
 * Returns the meal carbs for the given CsvReader.
 *
 * @param creader The CsvReader instance.
 * @return String The blood glucose measurement.
 * @throws IOException If the file could not be opened.
 */
public String getMealCarbs(final CsvReader creader) throws IOException {
    switch (languageSelection) {
        case DE:
            throw new UnsupportedOperationException("Not suppported yet.");
        case EN:
            return creader.get(MY_SUGR_HEADER_EN_MEAL_MANUAL);
        default:
            Logger.getLogger(this.getClass().getName()).severe("ASSERTION ERROR!");
            throw new AssertionError();
    }
}
 
開發者ID:lucasbuschlinger,項目名稱:BachelorPraktikum,代碼行數:19,代碼來源:MySugrCSVValidator.java

示例15: getBasalUnits

import com.csvreader.CsvReader; //導入方法依賴的package包/類
/**
 * Returns the basal injection units for the given CsvReader.
 *
 * @param creader The CsvReader instance.
 * @return String The basal injection units.
 * @throws IOException If the file could not be opened.
 */
public String getBasalUnits(final CsvReader creader) throws IOException {
    switch (languageSelection) {
        case DE:
            throw new UnsupportedOperationException("Not suppported yet.");
        case EN:
            return creader.get(MY_SUGR_HEADER_EN_BASAL_INJECTION_UNITS);
        default:
            Logger.getLogger(this.getClass().getName()).severe("ASSERTION ERROR!");
            throw new AssertionError();
    }
}
 
開發者ID:lucasbuschlinger,項目名稱:BachelorPraktikum,代碼行數:19,代碼來源:MySugrCSVValidator.java


注:本文中的com.csvreader.CsvReader.get方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。