public static FileInfo readFrom(DataInputStream stream) throws IOException {
    Objects.requireNonNull(stream, "stream should not be null");

    String fileName = Utils.readIntString(stream);
    long fileSize = stream.readLong();
    return new StoreFileInfo(fileName, fileSize);
  }
Reads a FileInfo object from the given input stream.
@param stream The input stream to read from.
@return The FileInfo object read from the input stream.
ambry-api/src/main/java/com/github/ambry/store/StoreFileInfo.java