Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for getFileExtension (0.12 sec)

  1. guava-tests/test/com/google/common/io/MoreFilesTest.java

        assertEquals("", MoreFiles.getFileExtension(root()));
        assertEquals("", MoreFiles.getFileExtension(FS.getPath(".")));
        assertEquals("", MoreFiles.getFileExtension(FS.getPath("..")));
        assertEquals("", MoreFiles.getFileExtension(FS.getPath("...")));
        assertEquals("", MoreFiles.getFileExtension(FS.getPath("blah")));
        assertEquals("", MoreFiles.getFileExtension(FS.getPath("blah.")));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/FilesTest.java

        assertEquals("", Files.getFileExtension("."));
        assertEquals("", Files.getFileExtension(".."));
        assertEquals("", Files.getFileExtension("..."));
        assertEquals("", Files.getFileExtension("blah"));
        assertEquals("", Files.getFileExtension("blah."));
        assertEquals("", Files.getFileExtension(".blah."));
        assertEquals("", Files.getFileExtension("/foo.bar/blah"));
        assertEquals("", Files.getFileExtension("/foo/.bar/blah"));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/MoreFilesTest.java

        assertEquals("", MoreFiles.getFileExtension(root()));
        assertEquals("", MoreFiles.getFileExtension(FS.getPath(".")));
        assertEquals("", MoreFiles.getFileExtension(FS.getPath("..")));
        assertEquals("", MoreFiles.getFileExtension(FS.getPath("...")));
        assertEquals("", MoreFiles.getFileExtension(FS.getPath("blah")));
        assertEquals("", MoreFiles.getFileExtension(FS.getPath("blah.")));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/FilesTest.java

        assertEquals("", Files.getFileExtension("."));
        assertEquals("", Files.getFileExtension(".."));
        assertEquals("", Files.getFileExtension("..."));
        assertEquals("", Files.getFileExtension("blah"));
        assertEquals("", Files.getFileExtension("blah."));
        assertEquals("", Files.getFileExtension(".blah."));
        assertEquals("", Files.getFileExtension("/foo.bar/blah"));
        assertEquals("", Files.getFileExtension("/foo/.bar/blah"));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/io/Files.java

       * href="https://learn.microsoft.com/en-us/archive/blogs/askcore/alternate-data-streams-in-ntfs">Alternate
       * Data Streams</a>.
       *
       * @since 11.0
       */
      public static String getFileExtension(String fullName) {
        checkNotNull(fullName);
        String fileName = new File(fullName).getName();
        int dotIndex = fileName.lastIndexOf('.');
        return (dotIndex == -1) ? "" : fileName.substring(dotIndex + 1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/Files.java

       * href="https://learn.microsoft.com/en-us/archive/blogs/askcore/alternate-data-streams-in-ntfs">Alternate
       * Data Streams</a>.
       *
       * @since 11.0
       */
      public static String getFileExtension(String fullName) {
        checkNotNull(fullName);
        String fileName = new File(fullName).getName();
        int dotIndex = fileName.lastIndexOf('.');
        return (dotIndex == -1) ? "" : fileName.substring(dotIndex + 1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/MoreFiles.java

       * filesystem due to NTFS's <a
       * href="https://learn.microsoft.com/en-us/archive/blogs/askcore/alternate-data-streams-in-ntfs">Alternate
       * Data Streams</a>.
       */
      public static String getFileExtension(Path path) {
        Path name = path.getFileName();
    
        // null for empty paths and root-only paths
        if (name == null) {
          return "";
        }
    
        String fileName = name.toString();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 35K bytes
    - Viewed (0)
  8. guava/src/com/google/common/io/MoreFiles.java

       * filesystem due to NTFS's <a
       * href="https://learn.microsoft.com/en-us/archive/blogs/askcore/alternate-data-streams-in-ntfs">Alternate
       * Data Streams</a>.
       */
      public static String getFileExtension(Path path) {
        Path name = path.getFileName();
    
        // null for empty paths and root-only paths
        if (name == null) {
          return "";
        }
    
        String fileName = name.toString();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 34.5K bytes
    - Viewed (0)
Back to top