string de bits para java inteiro

int foo = Integer.parseInt("1001", 2);
Depressed Dingo