// Path: xxl-conf-core/src/main/java/com/xxl/conf/core/exception/XxlConfException.java
// public class XxlConfException extends RuntimeException {
// 
//     private static final long serialVersionUID = 42L;
// 
//     public XxlConfException(String msg) {
//         super(msg);
//     }
// 
//     public XxlConfException(String msg, Throwable cause) {
//         super(msg, cause);
//     }
// 
//     public XxlConfException(Throwable cause) {
//         super(cause);
//     }
// 
// }


import com.xxl.conf.core.exception.XxlConfException;
package com.xxl.conf.core.util;



/**
 * data type parse
 *
 * @author xuxueli 2017-05-26
 */
public final class FieldReflectionUtil {

	private FieldReflectionUtil(){}

	public static Byte parseByte(String value) {
		try {
			value = value.replaceAll("　", "");
			return Byte.valueOf(value);
		} catch(NumberFormatException e) {
// Path: xxl-conf-core/src/main/java/com/xxl/conf/core/exception/XxlConfException.java
// public class XxlConfException extends RuntimeException {
// 
//     private static final long serialVersionUID = 42L;
// 
//     public XxlConfException(String msg) {
//         super(msg);
//     }
// 
//     public XxlConfException(String msg, Throwable cause) {
//         super(msg, cause);
//     }
// 
//     public XxlConfException(Throwable cause) {
//         super(cause);
//     }
// 
// }


// Path: xxl-conf-core/src/main/java/com/xxl/conf/core/util/FieldReflectionUtil.java
import com.xxl.conf.core.exception.XxlConfException;

package com.xxl.conf.core.util;



/**
 * data type parse
 *
 * @author xuxueli 2017-05-26
 */
public final class FieldReflectionUtil {

	private FieldReflectionUtil(){}

	public static Byte parseByte(String value) {
		try {
			value = value.replaceAll("　", "");
			return Byte.valueOf(value);
		} catch(NumberFormatException e) {
			throw new XxlConfException("parseByte but input illegal input=" + value, e);