test_class.file: gcsio/src/test/java/com/google/cloud/hadoop/gcsio/FileInfoTest.java
test_class.identifier: FileInfoTest
test_case.body: @Test
    public void fromItemInfo() throws Exception {
      GoogleCloudStorageItemInfo itemInfo =
          new GoogleCloudStorageItemInfo(
              new StorageResourceId("foo-test-bucket", "bar/test/object"),
              /* creationTime= */ 10L,
              /* modificationTime= */ 15L,
              /* size= */ 200L,
              "us-east1",
              "nearline",
              "text/plain",
              /* contentEncoding= */ "lzma",
              /* metadata= */ ImmutableMap.of("foo-meta", new byte[] {5, 66, 56}),
              /* contentGeneration= */ 312432L,
              /* metaGeneration= */ 2L);
  
      FileInfo fileInfo = FileInfo.fromItemInfo(itemInfo);
  
      assertThat(fileInfo.getPath()).isEqualTo(new URI("gs://foo-test-bucket/bar/test/object"));
      assertThat(fileInfo.getCreationTime()).isEqualTo(10L);
      assertThat(fileInfo.getModificationTime()).isEqualTo(15L);
      assertThat(fileInfo.getSize()).isEqualTo(200);
      assertThat(fileInfo.getAttributes())
          .<byte[], byte[]>comparingValuesUsing(Correspondence.from(Arrays::equals, "Arrays.equals"))
          .containsExactly("foo-meta", new byte[] {5, 66, 56});
      assertThat(fileInfo.getItemInfo()).isEqualTo(itemInfo);
    }
test_case.class_method_signature: FileInfoTest.fromItemInfo()
test_case.full_signature: @Test public void fromItemInfo()
test_case.identifier: fromItemInfo
test_case.invocations: of fromItemInfo isEqualTo assertThat getPath isEqualTo assertThat getCreationTime isEqualTo assertThat getModificationTime isEqualTo assertThat getSize containsExactly comparingValuesUsing assertThat getAttributes from isEqualTo assertThat getItemInfo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void fromItemInfo()
focal_class.declarator: ROOT_INFO =
        new FileInfo(GoogleCloudStorageFileSystem.GCS_ROOT, GoogleCloudStorageItemInfo.ROOT_INFO)
focal_class.modifier: public static final
focal_class.original_string: public static final FileInfo ROOT_INFO =
        new FileInfo(GoogleCloudStorageFileSystem.GCS_ROOT, GoogleCloudStorageItemInfo.ROOT_INFO);
focal_class.type: FileInfo
focal_class.var_name: ROOT_INFO
focal_class.declarator: path
focal_class.modifier: private final
focal_class.original_string: private final URI path;
focal_class.type: URI
focal_class.var_name: path
focal_class.declarator: itemInfo
focal_class.modifier: private final
focal_class.original_string: private final GoogleCloudStorageItemInfo itemInfo;
focal_class.type: GoogleCloudStorageItemInfo
focal_class.var_name: itemInfo
focal_class.declarator: attributes
focal_class.modifier: private final
focal_class.original_string: private final Map<String, byte[]> attributes;
focal_class.type: Map<String, byte[]>
focal_class.var_name: attributes
focal_class.file: gcsio/src/main/java/com/google/cloud/hadoop/gcsio/FileInfo.java
focal_class.identifier: FileInfo
focal_class.class_method_signature: FileInfo.FileInfo(URI path, GoogleCloudStorageItemInfo itemInfo)
focal_class.full_signature: private  FileInfo(URI path, GoogleCloudStorageItemInfo itemInfo)
focal_class.identifier: FileInfo
focal_class.modifiers: private
focal_class.parameters: (URI path, GoogleCloudStorageItemInfo itemInfo)
focal_class.signature:  FileInfo(URI path, GoogleCloudStorageItemInfo itemInfo)
focal_class.class_method_signature: FileInfo.getPath()
focal_class.full_signature: public URI getPath()
focal_class.identifier: getPath
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: URI
focal_class.signature: URI getPath()
focal_class.class_method_signature: FileInfo.isDirectory()
focal_class.full_signature: public boolean isDirectory()
focal_class.identifier: isDirectory
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isDirectory()
focal_class.class_method_signature: FileInfo.isGlobalRoot()
focal_class.full_signature: public boolean isGlobalRoot()
focal_class.identifier: isGlobalRoot
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isGlobalRoot()
focal_class.class_method_signature: FileInfo.getCreationTime()
focal_class.full_signature: public long getCreationTime()
focal_class.identifier: getCreationTime
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getCreationTime()
focal_class.class_method_signature: FileInfo.getSize()
focal_class.full_signature: public long getSize()
focal_class.identifier: getSize
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getSize()
focal_class.class_method_signature: FileInfo.getModificationTime()
focal_class.full_signature: public long getModificationTime()
focal_class.identifier: getModificationTime
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getModificationTime()
focal_class.class_method_signature: FileInfo.getAttributes()
focal_class.full_signature: public Map<String, byte[]> getAttributes()
focal_class.identifier: getAttributes
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Map<String, byte[]>
focal_class.signature: Map<String, byte[]> getAttributes()
focal_class.class_method_signature: FileInfo.exists()
focal_class.full_signature: public boolean exists()
focal_class.identifier: exists
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean exists()
focal_class.class_method_signature: FileInfo.toString()
focal_class.full_signature: public String toString()
focal_class.identifier: toString
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: FileInfo.getItemInfo()
focal_class.full_signature: public GoogleCloudStorageItemInfo getItemInfo()
focal_class.identifier: getItemInfo
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: GoogleCloudStorageItemInfo
focal_class.signature: GoogleCloudStorageItemInfo getItemInfo()
focal_class.class_method_signature: FileInfo.convertToDirectoryPath(StorageResourceId resourceId)
focal_class.full_signature: public static StorageResourceId convertToDirectoryPath(StorageResourceId resourceId)
focal_class.identifier: convertToDirectoryPath
focal_class.modifiers: public static
focal_class.parameters: (StorageResourceId resourceId)
focal_class.return: StorageResourceId
focal_class.signature: StorageResourceId convertToDirectoryPath(StorageResourceId resourceId)
focal_class.class_method_signature: FileInfo.convertToDirectoryPath(URI path)
focal_class.full_signature: public static URI convertToDirectoryPath(URI path)
focal_class.identifier: convertToDirectoryPath
focal_class.modifiers: public static
focal_class.parameters: (URI path)
focal_class.return: URI
focal_class.signature: URI convertToDirectoryPath(URI path)
focal_class.class_method_signature: FileInfo.fromItemInfo(GoogleCloudStorageItemInfo itemInfo)
focal_class.full_signature: public static FileInfo fromItemInfo(GoogleCloudStorageItemInfo itemInfo)
focal_class.identifier: fromItemInfo
focal_class.modifiers: public static
focal_class.parameters: (GoogleCloudStorageItemInfo itemInfo)
focal_class.return: FileInfo
focal_class.signature: FileInfo fromItemInfo(GoogleCloudStorageItemInfo itemInfo)
focal_class.class_method_signature: FileInfo.fromItemInfos(List<GoogleCloudStorageItemInfo> itemInfos)
focal_class.full_signature: public static List<FileInfo> fromItemInfos(List<GoogleCloudStorageItemInfo> itemInfos)
focal_class.identifier: fromItemInfos
focal_class.modifiers: public static
focal_class.parameters: (List<GoogleCloudStorageItemInfo> itemInfos)
focal_class.return: List<FileInfo>
focal_class.signature: List<FileInfo> fromItemInfos(List<GoogleCloudStorageItemInfo> itemInfos)
focal_class.class_method_signature: FileInfo.isDirectoryPath(URI path)
focal_class.full_signature: public static boolean isDirectoryPath(URI path)
focal_class.identifier: isDirectoryPath
focal_class.modifiers: public static
focal_class.parameters: (URI path)
focal_class.return: boolean
focal_class.signature: boolean isDirectoryPath(URI path)
focal_method.body: public static FileInfo fromItemInfo(GoogleCloudStorageItemInfo itemInfo) {
      if (itemInfo.isRoot()) {
        return ROOT_INFO;
      }
      URI path = UriPaths.fromResourceId(itemInfo.getResourceId(), /* allowEmptyObjectName= */ true);
      return new FileInfo(path, itemInfo);
    }
focal_method.class_method_signature: FileInfo.fromItemInfo(GoogleCloudStorageItemInfo itemInfo)
focal_method.full_signature: public static FileInfo fromItemInfo(GoogleCloudStorageItemInfo itemInfo)
focal_method.identifier: fromItemInfo
focal_method.invocations: isRoot fromResourceId getResourceId
focal_method.modifiers: public static
focal_method.parameters: (GoogleCloudStorageItemInfo itemInfo)
focal_method.return: FileInfo
focal_method.signature: FileInfo fromItemInfo(GoogleCloudStorageItemInfo itemInfo)