test_class.declarator: testFolder
test_class.modifier: private
test_class.original_string: private Path testFolder;
test_class.type: Path
test_class.var_name: testFolder
test_class.file: dataprep-backend-service/src/test/java/org/talend/dataprep/folder/store/file/FileSystemUtilsTest.java
test_class.identifier: FileSystemUtilsTest
test_case.body: @Test
      public void matches_entryMatches() throws Exception {
          Path testEntry = testFolder.resolve("testEntry");
          String contentId = "contentId";
          String folderId = "folderId";
          FolderContentType contentType = FolderContentType.PREPARATION;
  
          createEntry(testEntry, contentId, folderId, contentType);
  
          // test read
          assertTrue(FileSystemUtils.matches(testEntry, contentId, contentType));
      }
test_case.class_method_signature: FileSystemUtilsTest.matches_entryMatches()
test_case.full_signature: @Test public void matches_entryMatches()
test_case.identifier: matches_entryMatches
test_case.invocations: resolve createEntry assertTrue matches
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void matches_entryMatches()
focal_class.file: dataprep-backend-service/src/main/java/org/talend/dataprep/folder/store/file/FileSystemUtils.java
focal_class.identifier: FileSystemUtils
focal_class.class_method_signature: FileSystemUtils.FileSystemUtils()
focal_class.full_signature: private  FileSystemUtils()
focal_class.identifier: FileSystemUtils
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  FileSystemUtils()
focal_class.class_method_signature: FileSystemUtils.countSubDirectories(Path path)
focal_class.full_signature: static long countSubDirectories(Path path)
focal_class.identifier: countSubDirectories
focal_class.modifiers: static
focal_class.parameters: (Path path)
focal_class.return: long
focal_class.signature: long countSubDirectories(Path path)
focal_class.class_method_signature: FileSystemUtils.deleteFile()
focal_class.full_signature: static Consumer<Path> deleteFile()
focal_class.identifier: deleteFile
focal_class.modifiers: static
focal_class.parameters: ()
focal_class.return: Consumer<Path>
focal_class.signature: Consumer<Path> deleteFile()
focal_class.class_method_signature: FileSystemUtils.matches(Path pathFile, String contentId, FolderContentType contentType)
focal_class.full_signature: static boolean matches(Path pathFile, String contentId, FolderContentType contentType)
focal_class.identifier: matches
focal_class.modifiers: static
focal_class.parameters: (Path pathFile, String contentId, FolderContentType contentType)
focal_class.return: boolean
focal_class.signature: boolean matches(Path pathFile, String contentId, FolderContentType contentType)
focal_class.class_method_signature: FileSystemUtils.readEntryFromStream(InputStream inputStream)
focal_class.full_signature: private static FolderEntry readEntryFromStream(InputStream inputStream)
focal_class.identifier: readEntryFromStream
focal_class.modifiers: private static
focal_class.parameters: (InputStream inputStream)
focal_class.return: FolderEntry
focal_class.signature: FolderEntry readEntryFromStream(InputStream inputStream)
focal_class.class_method_signature: FileSystemUtils.toFolderEntry(Path pathFile)
focal_class.full_signature: static FolderEntry toFolderEntry(Path pathFile)
focal_class.identifier: toFolderEntry
focal_class.modifiers: static
focal_class.parameters: (Path pathFile)
focal_class.return: FolderEntry
focal_class.signature: FolderEntry toFolderEntry(Path pathFile)
focal_class.class_method_signature: FileSystemUtils.hasEntry(Path path)
focal_class.full_signature: static boolean hasEntry(Path path)
focal_class.identifier: hasEntry
focal_class.modifiers: static
focal_class.parameters: (Path path)
focal_class.return: boolean
focal_class.signature: boolean hasEntry(Path path)
focal_class.class_method_signature: FileSystemUtils.writeEntryToStream(FolderEntry folderEntry, OutputStream outputStream)
focal_class.full_signature: static void writeEntryToStream(FolderEntry folderEntry, OutputStream outputStream)
focal_class.identifier: writeEntryToStream
focal_class.modifiers: static
focal_class.parameters: (FolderEntry folderEntry, OutputStream outputStream)
focal_class.return: void
focal_class.signature: void writeEntryToStream(FolderEntry folderEntry, OutputStream outputStream)
focal_class.class_method_signature: FileSystemUtils.toId(FolderPath folderPath)
focal_class.full_signature: public static String toId(FolderPath folderPath)
focal_class.identifier: toId
focal_class.modifiers: public static
focal_class.parameters: (FolderPath folderPath)
focal_class.return: String
focal_class.signature: String toId(FolderPath folderPath)
focal_class.class_method_signature: FileSystemUtils.fromId(String id)
focal_class.full_signature: public static FolderPath fromId(String id)
focal_class.identifier: fromId
focal_class.modifiers: public static
focal_class.parameters: (String id)
focal_class.return: FolderPath
focal_class.signature: FolderPath fromId(String id)
focal_method.body: static boolean matches(Path pathFile, String contentId, FolderContentType contentType) {
          boolean passFilter = false;
          try (InputStream inputStream = Files.newInputStream(pathFile)) {
              FolderEntry folderEntry = readEntryFromStream(inputStream);
              if (Objects.equals(contentType, folderEntry.getContentType()) && //
                      StringUtils.equalsIgnoreCase(folderEntry.getContentId(), contentId)) {
                  passFilter = true;
              }
          } catch (IOException e) {
              throw new TDPException(UNABLE_TO_READ_FOLDER_ENTRY, e, build().put("path", pathFile));
          }
          return passFilter;
      }
focal_method.class_method_signature: FileSystemUtils.matches(Path pathFile, String contentId, FolderContentType contentType)
focal_method.full_signature: static boolean matches(Path pathFile, String contentId, FolderContentType contentType)
focal_method.identifier: matches
focal_method.invocations: newInputStream readEntryFromStream equals getContentType equalsIgnoreCase getContentId put build
focal_method.modifiers: static
focal_method.parameters: (Path pathFile, String contentId, FolderContentType contentType)
focal_method.return: boolean
focal_method.signature: boolean matches(Path pathFile, String contentId, FolderContentType contentType)