public ListPage<FileInfo> listAllFileInfoForPrefixPage(URI prefix, String pageToken)
      throws IOException {
    logger.atFine().log("listAllFileInfoForPrefixPage(%s, %s)", prefix, pageToken);
    StorageResourceId prefixId = getPrefixId(prefix);
    ListPage<GoogleCloudStorageItemInfo> itemInfosPage =
        gcs.listObjectInfoPage(
            prefixId.getBucketName(), prefixId.getObjectName(), /* delimiter= */ null, pageToken);
    List<FileInfo> fileInfosPage = FileInfo.fromItemInfos(pathCodec, itemInfosPage.getItems());
    fileInfosPage.sort(FILE_INFO_PATH_COMPARATOR);
    return new ListPage<>(fileInfosPage, itemInfosPage.getNextPageToken());
  }
public ListPage < FileInfo > listAllFileInfoForPrefixPage ( URI prefix , String pageToken ) throws IOException { logger . atFine ( ) . log ( "listAllFileInfoForPrefixPage(%s, %s)" , prefix , pageToken ) ; StorageResourceId prefixId = getPrefixId ( prefix ) ; ListPage < GoogleCloudStorageItemInfo > itemInfosPage = gcs . listObjectInfoPage ( prefixId . getBucketName ( ) , prefixId . getObjectName ( ) , null , pageToken ) ; List < FileInfo > fileInfosPage = FileInfo . fromItemInfos ( pathCodec , itemInfosPage . getItems ( ) ) ; fileInfosPage . sort ( FILE_INFO_PATH_COMPARATOR ) ; return new ListPage < > ( fileInfosPage , itemInfosPage . getNextPageToken ( ) ) ; }
Equivalent to {@link #listAllFileInfoForPrefix} but returns {@link FileInfo}s listed by single
request (1 page).

@param prefix the prefix to use to list all matching objects.
@param pageToken the page token to list