Android Byte Array Convert From toByteObject(String value, Byte defaultValue)

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

Description

to Byte Object

Declaration

public static Byte toByteObject(String value, Byte defaultValue) 

Method Source Code

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

Related

  1. shortToByteArray(short value)
  2. convertLongArrayToByteArray(long[] longArray)
  3. toByte(String value, byte defaultValue)
  4. toByte(int byteValue)
  5. toByte(int n)
  6. toBytes(char[] chars)
  7. toBytes(int integer)
  8. toBytes(int... byteValue)
  9. toBytes(int... integer)