in baremaps-core/src/main/java/org/apache/baremaps/openstreetmap/xml/XmlEntitySpliterator.java [269:280]
private Info readInfo() {
String versionValue = reader.getAttributeValue(null, ATTRIBUTE_NAME_VERSION);
int version = versionValue != null ? Ints.tryParse(versionValue) : 0;
String timestampValue = reader.getAttributeValue(null, ATTRIBUTE_NAME_TIMESTAMP);
LocalDateTime timestamp =
timestampValue != null ? LocalDateTime.parse(timestampValue, format) : null;
String changesetValue = reader.getAttributeValue(null, ATTRIBUTE_NAME_CHANGESET_ID);
long changeset = changesetValue != null ? Longs.tryParse(changesetValue) : -1;
String uidValue = reader.getAttributeValue(null, ATTRIBUTE_NAME_USER_ID);
int uid = uidValue != null && Ints.tryParse(uidValue) != null ? Ints.tryParse(uidValue) : -1;
return new Info(version, timestamp, changeset, uid);
}