строка битов до целочисленной Java

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