Project

General

Profile

Revision 0becfb5f

ID0becfb5fcb4d434416e89951e199071fa8f92963
Parent 13c8fbc6
Child 097347e0

Added by Andreas Müller over 3 years ago

ref #6541 warning and errors to bytes in ImportResult

View differences:

cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/common/IoResultBase.java
8 8
*/
9 9
package eu.etaxonomy.cdm.io.common;
10 10

  
11
import java.nio.charset.StandardCharsets;
11 12
import java.util.ArrayList;
12 13
import java.util.List;
13 14

  
......
27 28
    public List<byte[]> getErrors() {return errors;}
28 29
    public void setErrors(List<byte[]> errors) {this.errors = errors;}
29 30
    public void addError(String error) {
30
//        errors.add(error);
31
        errors.add(error.getBytes(StandardCharsets.UTF_8));
31 32
    }
32 33

  
33 34
    public List<byte[]> getWarnings() {return warnings;}
34 35
    public void setWarnings(List<byte[]> warnings) {this.warnings = warnings;}
35 36
    public void addWarning(String warning) {
36
//        warnings.add(StringUtils..warning.to);
37
        warnings.add(warning.getBytes(StandardCharsets.UTF_8));
37 38
    }
38 39

  
39 40
    public List<Exception> getExceptions() {return exceptions;}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)