}
}
private Object readDataFragment(boolean bigEndian) {
if (next() != Event.KEY_NAME) {
throw new JsonParsingException("Unexpected " + event
+ ", expected \"InlineBinary\""
+ " or \"BulkDataURI\"", location);
}
String key = getString();
Object value;
if ("BulkDataURI".equals(key)) {
value = readBulkData(bigEndian);
} else if ("InlineBinary".equals(key)) {
value = readInlineBinary();
} else {
throw new JsonParsingException("Unexpected \"" + key
+ "\", expected \"InlineBinary\""
+ " or \"BulkDataURI\"", location);
}
if (next() != Event.END_OBJECT) {
throw new JsonParsingException("Unexpected " + event
+ " expected end of data fragment object", location);
}
return value;
}