+ public static @NonNull Revision readFrom(final DataInput in) throws IOException {
+ return ofRead(in.readUTF());
+ }
+
+ static @NonNull Revision ofRead(final @NonNull String str) throws IOException {
+ try {
+ return of(str);
+ } catch (DateTimeParseException e) {
+ throw new IOException("Invalid revision-date string", e);
+ }
+ }
+