Java Byte Create toByteObject(String value, Byte defaultValue)

Here you can find the source of toByteObject(String value, Byte defaultValue)

Description

to Byte Object

License

Open Source License

Declaration

public static Byte toByteObject(String value, Byte defaultValue) 

Method Source Code

//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;
        }
    }
}

Related

  1. toByteByAddress(String address)
  2. toByteByHex(String address)
  3. toByteColor(int i)
  4. toByteFromBin(String binSymbols)
  5. toByteMatrix(Number[][] matrix)
  6. toByteUnit(long values)
  7. toByteValue(final int value)
  8. toByteWithoutOverflow(float value)