Searched refs:probeContentType (Results 1 - 7 of 7) sorted by relevance

/openjdk7/jdk/test/java/nio/file/Files/probeContentType/
H A DForceLoad.java26 * @summary Test library dependencies by invoking Files.probeContentType
36 Files.probeContentType(Paths.get("."));
H A DSimpleFileTypeDetector.java33 public String probeContentType(Path file) throws IOException { method in class:SimpleFileTypeDetector
H A DBasic.java26 * @summary Unit test for probeContentType method
36 * Uses Files.probeContentType to probe html file and custom file type.
59 String type = Files.probeContentType(file);
73 String type = Files.probeContentType(file);
/openjdk7/jdk/src/share/classes/java/nio/file/spi/
H A DFileTypeDetector.java45 * @see java.nio.file.Files#probeContentType(Path)
102 * @see java.nio.file.Files#probeContentType
104 public abstract String probeContentType(Path path) method in class:FileTypeDetector
/openjdk7/jdk/src/share/sample/nio/file/
H A DFileType.java56 type = Files.probeContentType(file);
/openjdk7/jdk/src/share/classes/sun/nio/fs/
H A DAbstractFileTypeDetector.java49 public final String probeContentType(Path file) throws IOException { method in class:AbstractFileTypeDetector
/openjdk7/jdk/src/share/classes/java/nio/file/
H A DFiles.java1521 * detector's {@link FileTypeDetector#probeContentType probeContentType} is
1563 public static String probeContentType(Path path) method in class:Files
1568 String result = detector.probeContentType(path);
1574 return FileTypeDetectors.defaultFileTypeDetector.probeContentType(path);

Completed in 53 milliseconds