String to binary java. The methods used for this conversion are Integer.