View Javadoc
1   package org.csveed.bean.conversion;
2   
3   public class CharArrayConverter extends AbstractConverter<char[]> {
4   
5       public CharArrayConverter() {
6           super(char[].class);
7       }
8   
9       @Override
10      public char[] fromString(String text) throws Exception {
11          return text != null ? text.toCharArray() : null;
12      }
13  
14      @Override
15      public String toString(char[] value) throws Exception {
16          return value != null ? new String(value) : "";
17      }
18  
19  }