class PassportService {
/**
* Reads the issuing state.
*
* @return a string of length 3 containing an abbreviation
* of the issuing state or organization
*
* @throws IOException if something goes wrong
*/
public String readIssuingState() throws IOException {
byte[] fileData = readMRZ();
DataInputStream in = new DataInputStream(new ByteArrayInputStream(fileData));
in.skip(2);
byte[] data = new byte[3];
in.readFully(data);
return new String(data);
}
}