本文整理匯總了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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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();
}
}
示例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();
}
}