Here you can find the source of toByteObject(String value, Byte defaultValue)
public static Byte toByteObject(String value, Byte defaultValue)
//package com.java2s; //License from project: GNU General Public License public class Main { public static Byte toByteObject(String value, Byte defaultValue) { try {/* w ww. j av a 2 s. c o m*/ return new Byte(value); } catch (Exception e) { return defaultValue; } } }