Searched defs:file (Results 76 - 100 of 497) sorted by relevance

1234567891011>>

/openjdk7/jdk/src/share/classes/com/sun/media/sound/
H A DAudioFileSoundbankReader.java8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
111 public Soundbank getSoundbank(File file) argument
114 AudioInputStream ais = AudioSystem.getAudioInputStream(file);
117 new ModelByteBuffer(file, 0, file.length()), -4800);
H A DDLSSoundbankReader.java8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
66 public Soundbank getSoundbank(File file) argument
69 return new DLSSoundbank(file);
H A DJARSoundbankReader.java8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
118 public Soundbank getSoundbank(File file) argument
120 return getSoundbank(file.toURI().toURL());
H A DSF2SoundbankReader.java8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
65 public Soundbank getSoundbank(File file) argument
68 return new SF2Soundbank(file);
/openjdk7/jdk/src/share/classes/com/sun/nio/file/
H A DExtendedOpenOption.java8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
26 package com.sun.nio.file;
28 import java.nio.file.OpenOption;
39 * Prevent operations on the file that request read access.
43 * Prevent operations on the file that request write access.
47 * Prevent operations on the file that request delete access.
H A DSensitivityWatchEventModifier.java8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
26 package com.sun.nio.file;
28 import java.nio.file.WatchEvent.Modifier;
32 * watch service implementation that polls the file system.
/openjdk7/hotspot/src/share/tools/ProjectCreator/
H A DUtil.java12 * version 2 for more details (a copy is included in the LICENSE file that
71 static String normalize(String file) { argument
72 file = file.replace('\\', '/');
73 if (file.length() > 2) {
74 if (file.charAt(1) == ':' && file.charAt(2) == '/') {
76 String drive = file.substring(0, 1).toUpperCase();
77 return drive + file.substring(1);
80 return file;
[all...]
/openjdk7/hotspot/src/share/vm/utilities/
H A Ddecoder_elf.cpp12 * version 2 for more details (a copy is included in the LICENSE file that
38 assert(filepath, "null file path");
41 ElfFile* file = get_elf_file(filepath);
42 if (file == NULL) {
46 if (!file->decode(addr, buf, buflen, offset)) {
56 ElfFile* file; local
58 file = _opened_elf_files;
59 while (file != NULL) {
60 if (file->same_elf_file(filepath)) {
61 return file;
[all...]
/openjdk7/jaxws/src/share/jaf_classes/javax/activation/
H A DFileTypeMap.java8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
34 * type from a file name or a File object. FileTypeMaps could use any
35 * scheme to determine the data type, from examining the file extension
36 * of a file (like the MimetypesFileTypeMap) to opening the file and
37 * trying to derive its type from the contents of the file. The
60 * Return the type of the file object. This method should
63 * @param file
66 getContentType(File file) argument
[all...]
/openjdk7/jdk/src/windows/classes/sun/nio/fs/
H A DRegistryFileTypeDetector.java8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
28 import java.nio.file.*;
34 * File type detector that does lookup of file extension using Windows Registry.
45 public String implProbeContentType(Path file) throws IOException { argument
46 if (!(file instanceof Path))
49 // get file extension
50 Path name = file.getFileName();
/openjdk7/jdk/test/java/io/FileInputStream/
H A DLargeFileAvailable.java12 * version 2 for more details (a copy is included in the LICENSE file that
28 * a large file.
34 import java.nio.file.Files;
35 import static java.nio.file.StandardOpenOption.*;
39 // Create a temporary file in the current directory.
41 // a large sparse file test. As a fallback use whatever
43 File file = File.createTempFile("largefile", null, new File("."));
44 long spaceavailable = file.getUsableSpace();
48 throw new RuntimeException("No space available for temp file.");
51 createLargeFile(filesize, file);
97 createLargeFile(long filesize, File file) argument
[all...]
/openjdk7/jdk/test/java/nio/channels/FileChannel/
H A DAtomicAppend.java12 * version 2 for more details (a copy is included in the LICENSE file that
39 import java.nio.file.Files;
40 import static java.nio.file.StandardOpenOption.*;
45 // Open file for appending, returning FileChannel
46 static FileChannel newFileChannel(File file) throws IOException { argument
48 return new FileOutputStream(file, true).getChannel();
50 return FileChannel.open(file.toPath(), APPEND);
54 // Open file for append, returning OutputStream
55 static OutputStream newOutputStream(File file) throws IOException { argument
57 return new FileOutputStream(file, tru
[all...]
H A DReleaseOnCloseDeadlock.java12 * version 2 for more details (a copy is included in the LICENSE file that
31 import java.nio.file.Path;
32 import static java.nio.file.StandardOpenOption.*;
51 static void test(Path file) throws IOException { argument
54 FileChannel fc = FileChannel.open(file, READ, WRITE);
60 AsynchronousFileChannel ch = AsynchronousFileChannel.open(file, READ, WRITE);
76 // start thread to close the file (and invalidate the locks)
/openjdk7/jdk/test/java/nio/file/
H A DTestUtil.java12 * version 2 for more details (a copy is included in the LICENSE file that
24 import java.nio.file.*;
25 import java.nio.file.attribute.BasicFileAttributes;
49 public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) {
51 Files.delete(file);
53 System.err.format("Unable to delete %s: %s\n", file, x);
67 public FileVisitResult visitFileFailed(Path file, IOException exc) {
68 System.err.format("Unable to visit %s: %s\n", file, exc);
74 static void deleteUnchecked(Path file) { argument
76 Files.delete(file);
[all...]
/openjdk7/langtools/src/share/classes/com/sun/javadoc/
H A DSourcePosition.java8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
38 /** The source file. Returns null if no file information is
40 File file(); method in interface:SourcePosition
42 /** The line in the source file. The first line is numbered 1;
46 /** The column in the source file. The first column is
/openjdk7/langtools/src/share/classes/com/sun/mirror/util/
H A DSourcePosition.java8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
33 * Represents a position in a source file.
52 * Returns the source file containing this position.
54 * @return the source file containing this position; never null
56 File file(); method in interface:SourcePosition
/openjdk7/langtools/src/share/classes/com/sun/source/util/
H A DSourcePositions.java8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
41 * Gets the starting position of tree within file. If tree is not found within
42 * file, or if the starting position is not available,
53 * @param file CompilationUnit in which to find tree.
57 long getStartPosition(CompilationUnitTree file, Tree tree); argument
60 * Gets the ending position of tree within file. If tree is not found within
61 * file, or if the starting position is not available,
80 * @param file CompilationUni
84 getEndPosition(CompilationUnitTree file, Tree tree) argument
[all...]
/openjdk7/jdk/test/javax/imageio/plugins/jpeg/
H A DConcurrentReadingTest.java12 * version 2 for more details (a copy is included in the LICENSE file that
47 static File file = new File("IMGP1001.JPG"); field in class:ConcurrentReadingTest
57 ImageInputStream iis = ImageIO.createImageInputStream(file);
78 ImageInputStream iis = ImageIO.createImageInputStream(file);
117 System.out.println("Create test image " + file.getAbsolutePath());
118 boolean b = ImageIO.write(img, "JPEG", file);
/openjdk7/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/protocol/file/
H A DPerfDataBuffer.java8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
26 package sun.jvmstat.perfdata.monitor.protocol.file;
36 * The concrete PerfDataBuffer implementation for the <em>file:</em>
40 * buffer stored in a file referenced by a file URI.
51 * @param vmid the <em>file:</em> URI to the instrumentation buffer file
/openjdk7/jdk/src/solaris/classes/sun/nio/fs/
H A DBsdFileStore.java8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
28 import java.nio.file.attribute.*;
39 BsdFileStore(UnixPath file) throws IOException { argument
40 super(file);
48 * Finds, and returns, the mount entry for the file system where the file
53 UnixFileSystem fs = file().getFileSystem();
58 byte[] rp = UnixNativeDispatcher.realpath(file());
[all...]
/openjdk7/langtools/test/tools/javac/
H A DT6558476.java12 * version 2 for more details (a copy is included in the LICENSE file that
38 private static File copyFileTo(File file, File directory) throws IOException { argument
39 File newFile = new File(directory, file.getName());
43 fis = new FileInputStream(file);
92 throw new Error("Couldn't compile the file (exit code=" + rc + ")");
96 System.out.println("jar file successfully deleted");
98 throw new Error("Error deleting file \"" + tmpJar.getPath() + "\"");
H A DT6665791.java12 * version 2 for more details (a copy is included in the LICENSE file that
76 static void write(File file, String body) throws IOException { argument
77 FileWriter out = new FileWriter(file);
/openjdk7/langtools/test/tools/javac/api/6420409/
H A DT6420409.java12 * version 2 for more details (a copy is included in the LICENSE file that
66 static void test(Iterable<? extends File> path, File file, Location location) { argument
68 if (!it.next().equals(file))
69 throw new AssertionError(file + " not in " + location);
/openjdk7/langtools/test/tools/javac/processing/6350124/
H A DT6350124.java12 * version 2 for more details (a copy is included in the LICENSE file that
61 throw new AssertionError("generated source file not found");
65 throw new AssertionError("generated class file not found");
71 static void clean(File file) { argument
72 if (!file.exists())
74 if (file.isDirectory()) {
75 for (File f: file.listFiles())
78 file.delete();
/openjdk7/jdk/test/sun/security/pkcs11/ec/
H A DReadCertificates.java12 * version 2 for more details (a copy is included in the LICENSE file that
49 private static Collection<X509Certificate> readCertificates(File file) throws Exception { argument
50 System.out.println("Loading " + file.getName() + "...");
51 InputStream in = new FileInputStream(file);
83 for (File file : files) {
84 if (file.isFile() == false) {
87 Collection<X509Certificate> certList = readCertificates(file);
94 throw new Exception(file.getPath());

Completed in 55 milliseconds

1234567891011>>