本文整理汇总了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();
}
}