Here you can find the source of toByteObject(String value, Byte defaultValue)
public static Byte toByteObject(String value, Byte defaultValue)
//package com.java2s; public class Main { public static Byte toByteObject(String value, Byte defaultValue) { try {// w w w .ja va2 s . c o m return new Byte(value); } catch (Exception e) { return defaultValue; } } }