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

    String fileName = Utils.readIntString(stream);
    long fileSize = stream.readLong();
    List<FileInfo> listOfIndexFiles = new ArrayList<>();
    List<FileInfo> listOfBloomFilters = new ArrayList<>();

    int indexFilesCount = stream.readInt();
    for (int i = 0; i < indexFilesCount; i++) {
      listOfIndexFiles.add(StoreFileInfo.readFrom(stream));
    }

    int bloomFiltersCount = stream.readInt();
    for(int i = 0; i < bloomFiltersCount; i++){
      listOfBloomFilters.add(StoreFileInfo.readFrom(stream));
    }
    return new StoreLogInfo(new StoreFileInfo(fileName, fileSize), listOfIndexFiles, listOfBloomFilters);
  }
Read the LogInfo object from the input stream.
@param stream The input stream.
@return The LogInfo object.
ambry-api/src/main/java/com/github/ambry/store/StoreLogInfo.java