Example usage for java.lang NumberFormatException getLocalizedMessage

List of usage examples for java.lang NumberFormatException getLocalizedMessage

Introduction

In this page you can find the example usage for java.lang NumberFormatException getLocalizedMessage.

Prototype

public String getLocalizedMessage() 

Source Link

Document

Creates a localized description of this throwable.

Usage

From source file:org.openestate.io.is24_csv.Is24CsvRecord.java

public Datei getDatei1() {
    String file = this.get(FIELD_DATEI1_NAME);
    if (file == null)
        return null;

    Integer dauer = null;/*  w  w  w  . j ava2s  . c o  m*/
    try {
        dauer = Is24CsvFormat.parseInteger(this.get(FIELD_DATEI1_DAUER));
    } catch (NumberFormatException ex) {
        LOGGER.warn("Can't read duration for file 1!");
        LOGGER.warn("> " + ex.getLocalizedMessage(), ex);
    }

    return new Datei(file, DateiTyp.parse(this.get(FIELD_DATEI1_TYP)),
            DateiSuffix.parse(this.get(FIELD_DATEI1_SUFFIX)), this.get(FIELD_DATEI1_TEXT),
            (dauer != null) ? dauer : 0);
}

From source file:org.openestate.io.is24_csv.Is24CsvRecord.java

public Datei getDatei2() {
    String file = this.get(FIELD_DATEI2_NAME);
    if (file == null)
        return null;

    Integer dauer = null;/*from   ww  w .ja v a2  s  .co  m*/
    try {
        dauer = Is24CsvFormat.parseInteger(this.get(FIELD_DATEI2_DAUER));
    } catch (NumberFormatException ex) {
        LOGGER.warn("Can't read duration for file 2!");
        LOGGER.warn("> " + ex.getLocalizedMessage(), ex);
    }

    return new Datei(file, DateiTyp.parse(this.get(FIELD_DATEI2_TYP)),
            DateiSuffix.parse(this.get(FIELD_DATEI2_SUFFIX)), this.get(FIELD_DATEI2_TEXT),
            (dauer != null) ? dauer : 0);
}

From source file:org.openestate.io.is24_csv.Is24CsvRecord.java

public Datei getDatei3() {
    String file = this.get(FIELD_DATEI3_NAME);
    if (file == null)
        return null;

    Integer dauer = null;/*from   www . j a  v a2s  .  com*/
    try {
        dauer = Is24CsvFormat.parseInteger(this.get(FIELD_DATEI3_DAUER));
    } catch (NumberFormatException ex) {
        LOGGER.warn("Can't read duration for file 3!");
        LOGGER.warn("> " + ex.getLocalizedMessage(), ex);
    }

    return new Datei(file, DateiTyp.parse(this.get(FIELD_DATEI3_TYP)),
            DateiSuffix.parse(this.get(FIELD_DATEI3_SUFFIX)), this.get(FIELD_DATEI3_TEXT),
            (dauer != null) ? dauer : 0);
}

From source file:org.openestate.io.is24_csv.Is24CsvRecord.java

public Datei getDatei4() {
    String file = this.get(FIELD_DATEI4_NAME);
    if (file == null)
        return null;

    Integer dauer = null;/*w ww . ja va  2 s.  c  o m*/
    try {
        dauer = Is24CsvFormat.parseInteger(this.get(FIELD_DATEI4_DAUER));
    } catch (NumberFormatException ex) {
        LOGGER.warn("Can't read duration for file 4!");
        LOGGER.warn("> " + ex.getLocalizedMessage(), ex);
    }

    return new Datei(file, DateiTyp.parse(this.get(FIELD_DATEI4_TYP)),
            DateiSuffix.parse(this.get(FIELD_DATEI4_SUFFIX)), this.get(FIELD_DATEI4_TEXT),
            (dauer != null) ? dauer : 0);
}

From source file:org.openestate.io.is24_csv.Is24CsvRecord.java

public Datei getDatei5() {
    String file = this.get(FIELD_DATEI5_NAME);
    if (file == null)
        return null;

    Integer dauer = null;// w ww .  j a v a2  s .c  o m
    try {
        dauer = Is24CsvFormat.parseInteger(this.get(FIELD_DATEI5_DAUER));
    } catch (NumberFormatException ex) {
        LOGGER.warn("Can't read duration for file 5!");
        LOGGER.warn("> " + ex.getLocalizedMessage(), ex);
    }

    return new Datei(file, DateiTyp.parse(this.get(FIELD_DATEI5_TYP)),
            DateiSuffix.parse(this.get(FIELD_DATEI5_SUFFIX)), this.get(FIELD_DATEI5_TEXT),
            (dauer != null) ? dauer : 0);
}

From source file:org.openestate.io.is24_csv.Is24CsvRecord.java

public Datei getDatei6() {
    String file = this.get(FIELD_DATEI6_NAME);
    if (file == null)
        return null;

    Integer dauer = null;/*  w  w w .j  av a 2s .c  o m*/
    try {
        dauer = Is24CsvFormat.parseInteger(this.get(FIELD_DATEI6_DAUER));
    } catch (NumberFormatException ex) {
        LOGGER.warn("Can't read duration for file 6!");
        LOGGER.warn("> " + ex.getLocalizedMessage(), ex);
    }

    return new Datei(file, DateiTyp.parse(this.get(FIELD_DATEI6_TYP)),
            DateiSuffix.parse(this.get(FIELD_DATEI6_SUFFIX)), this.get(FIELD_DATEI6_TEXT),
            (dauer != null) ? dauer : 0);
}

From source file:org.openestate.io.is24_csv.Is24CsvRecord.java

public Datei getDatei7() {
    String file = this.get(FIELD_DATEI7_NAME);
    if (file == null)
        return null;

    Integer dauer = null;//from   w  ww  . j  a v  a2s.  com
    try {
        dauer = Is24CsvFormat.parseInteger(this.get(FIELD_DATEI7_DAUER));
    } catch (NumberFormatException ex) {
        LOGGER.warn("Can't read duration for file 7!");
        LOGGER.warn("> " + ex.getLocalizedMessage(), ex);
    }

    return new Datei(file, DateiTyp.parse(this.get(FIELD_DATEI7_TYP)),
            DateiSuffix.parse(this.get(FIELD_DATEI7_SUFFIX)), this.get(FIELD_DATEI7_TEXT),
            (dauer != null) ? dauer : 0);
}

From source file:org.openestate.io.is24_csv.Is24CsvRecord.java

public Datei getDatei8() {
    String file = this.get(FIELD_DATEI8_NAME);
    if (file == null)
        return null;

    Integer dauer = null;//from  w w w .  j  a v a 2  s .  co m
    try {
        dauer = Is24CsvFormat.parseInteger(this.get(FIELD_DATEI8_DAUER));
    } catch (NumberFormatException ex) {
        LOGGER.warn("Can't read duration for file 8!");
        LOGGER.warn("> " + ex.getLocalizedMessage(), ex);
    }

    return new Datei(file, DateiTyp.parse(this.get(FIELD_DATEI8_TYP)),
            DateiSuffix.parse(this.get(FIELD_DATEI8_SUFFIX)), this.get(FIELD_DATEI8_TEXT),
            (dauer != null) ? dauer : 0);
}

From source file:org.openestate.io.is24_csv.Is24CsvRecord.java

public Datei getDatei9() {
    String file = this.get(FIELD_DATEI9_NAME);
    if (file == null)
        return null;

    Integer dauer = null;// w w w. j  a  va 2s .  co m
    try {
        dauer = Is24CsvFormat.parseInteger(this.get(FIELD_DATEI9_DAUER));
    } catch (NumberFormatException ex) {
        LOGGER.warn("Can't read duration for file 9!");
        LOGGER.warn("> " + ex.getLocalizedMessage(), ex);
    }

    return new Datei(file, DateiTyp.parse(this.get(FIELD_DATEI9_TYP)),
            DateiSuffix.parse(this.get(FIELD_DATEI9_SUFFIX)), this.get(FIELD_DATEI9_TEXT),
            (dauer != null) ? dauer : 0);
}

From source file:org.openestate.io.is24_csv.Is24CsvRecord.java

public Datei getDatei10() {
    String file = this.get(FIELD_DATEI10_NAME);
    if (file == null)
        return null;

    Integer dauer = null;/*from   w  w  w  .j  av a 2  s  .  c om*/
    try {
        dauer = Is24CsvFormat.parseInteger(this.get(FIELD_DATEI10_DAUER));
    } catch (NumberFormatException ex) {
        LOGGER.warn("Can't read duration for file 10!");
        LOGGER.warn("> " + ex.getLocalizedMessage(), ex);
    }

    return new Datei(file, DateiTyp.parse(this.get(FIELD_DATEI10_TYP)),
            DateiSuffix.parse(this.get(FIELD_DATEI10_SUFFIX)), this.get(FIELD_DATEI10_TEXT),
            (dauer != null) ? dauer : 0);
}