if (line.contains("BOX")) {
x = Integer.valueOf(line.substring(line.indexOf('(')+1,(i = line.indexOf(','))));
y = Integer.valueOf(line.substring((i+1), (j = line.indexOf(',', i+1))));
width = Integer.valueOf(line.substring((j+1), (i = line.indexOf(',', j+1))));
height = Integer.valueOf(line.substring((i+1), line.indexOf(')')));
boundingBox = new Box(x, y, width, height);
}
}