/openjdk7/hotspot/src/share/vm/utilities/ |
H A D | elfSymbolTable.cpp | 12 * version 2 for more details (a copy is included in the LICENSE file that 32 ElfSymbolTable::ElfSymbolTable(FILE* file, Elf_Shdr shdr) { argument 33 assert(file, "null file handle"); 36 m_file = file; 40 long cur_offset = ftell(file); 45 if (fseek(file, shdr.sh_offset, SEEK_SET) || 46 fread((void*)m_symbols, shdr.sh_size, 1, file) != 1 || 47 fseek(file, cur_offset, SEEK_SET)) {
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/fastinfoset/tools/ |
H A D | TransformInputOutput.java | 8 * 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 86 if (systemId != null && systemId.startsWith("file:/")) { 102 private static URI convertToNewWorkingDirectory(URI oldwd, URI newwd, URI file) throws IOException, URISyntaxException { argument 105 String fileStr = file.toString(); 108 // In simpliest case <user.dir>/file.xml - do it faster 134 return file;
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/org/jvnet/mimepull/ |
H A D | FileData.java | 8 * 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 31 * Keeps the Part's partial content data in a file. 37 private final DataFile file; field in class:FileData 41 FileData(DataFile file, ByteBuffer buf) { argument 42 this(file, file.writeTo(buf.array(), 0, buf.limit()), buf.limit()); 45 FileData(DataFile file, long pointer, int length) { argument 46 this.file 60 writeTo(DataFile file) argument [all...] |
H A D | MemoryData.java | 8 * 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 long writeTo(DataFile file) { argument 66 return file.writeTo(data, 0, len); 81 // delete the temp file when VM exits as a last resort for file clean up 84 LOGGER.log(Level.FINE, "Created temp file = {0}", tempFile);
|
/openjdk7/jdk/src/windows/classes/sun/awt/windows/ |
H A D | WDesktopPeer.java | 8 * 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 53 public void open(File file) throws IOException { argument 54 this.ShellExecute(file, ACTION_OPEN_VERB); 57 public void edit(File file) throws IOException { argument 58 this.ShellExecute(file, ACTION_EDIT_VERB); 61 public void print(File file) throws IOException { argument 62 this.ShellExecute(file, ACTION_PRINT_VERB); 73 private void ShellExecute(File file, Strin argument [all...] |
/openjdk7/jdk/src/windows/classes/sun/nio/fs/ |
H A D | WindowsAclFileAttributeView.java | 8 * 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.ProviderMismatchException; 29 import java.nio.file.attribute.*; 56 private final WindowsPath file; field in class:WindowsAclFileAttributeView 59 WindowsAclFileAttributeView(WindowsPath file, boolean followLinks) { argument 60 this.file = file; 65 private void checkAccess(WindowsPath file, argument [all...] |
H A D | WindowsUserDefinedFileAttributeView.java | 8 * 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.*; 29 import static java.nio.file.StandardOpenOption.*; 49 private String join(String file, String name) { argument 52 return file + ":" + name; 54 private String join(WindowsPath file, String name) throws WindowsException { argument 55 return join(file.getPathForWin32Calls(), name); 58 private final WindowsPath file; field in class:WindowsUserDefinedFileAttributeView 61 WindowsUserDefinedFileAttributeView(WindowsPath file, boolean followLinks) argument [all...] |
/openjdk7/jdk/test/java/io/File/ |
H A D | MacPathTest.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 26 * @summary Tests file path with nfc/nfd forms on MacOSX 45 "file_macosx"); // file 67 private static void removeAll(File file) throws Throwable { argument 68 if (file.isDirectory()) { 69 for (File f : file.listFiles()) { 73 file.delete(); 89 private static void open_read(String what, File file) throws Throwable { argument 90 try (FileInputStream fis = new FileInputStream(file)) {
|
/openjdk7/jdk/test/java/io/PrintStream/ |
H A D | FailingConstructors.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 38 import java.nio.file.Files; 39 import java.nio.file.Path; 44 static final String FILE_CONTENTS = "This is a small file!"; 49 /* create the file and write its contents */ 59 private static void test(boolean exists, File file) throws Throwable { argument 60 /* PrintStream(File file, String csn) */ 62 new PrintStream(file, UNSUPPORTED_CHARSET); 68 check(exists, file); 71 new PrintStream(file, nul 99 check(boolean exists, File file) argument 109 verifyContents(File file) argument [all...] |
/openjdk7/jdk/test/java/io/PrintWriter/ |
H A D | FailingConstructors.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 42 static final String FILE_CONTENTS = "This is a small file!"; 47 /* create the file and write its contents */ 48 File file = File.createTempFile(fileName, null); 49 file.deleteOnExit(); 50 FileOutputStream fos = new FileOutputStream(file); 54 test(true, file); 55 file.delete(); 58 private static void test(boolean exists, File file) throws Throwable { argument 59 /* PrintWriter(File file, Strin 98 check(boolean exists, File file) argument 108 verifyContents(File file) argument [all...] |
/openjdk7/jdk/test/java/lang/Runtime/exec/ |
H A D | ExecCommand.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 37 import java.nio.file.FileSystems; 38 import java.nio.file.Files; 71 @Override public void checkDelete(String file) {} argument 72 @Override public void checkRead(String file) {} argument
|
/openjdk7/jdk/test/java/nio/channels/AsynchronousFileChannel/ |
H A D | LotsOfWrites.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 31 import static java.nio.file.StandardOpenOption.*; 40 * Asynchronously writes a known pattern to a file up to a given size, 44 private final File file; field in class:LotsOfWrites.Writer 75 Writer(File file, long size, CountDownLatch latch) throws IOException { argument 76 this.file = file; 79 this.channel = AsynchronousFileChannel.open(file.toPath(), WRITE); 82 File file() { method in class:LotsOfWrites.Writer 83 return file; [all...] |
/openjdk7/jdk/test/java/nio/file/attribute/UserDefinedFileAttributeView/ |
H A D | Basic.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 26 * @summary Unit test for java.nio.file.attribute.UserDefinedFileAttributeView 32 import java.nio.file.*; 33 import static java.nio.file.LinkOption.*; 34 import java.nio.file.attribute.*; 81 static void test(Path file, LinkOption... options) throws IOException { argument 83 Files.getFileAttributeView(file, UserDefinedFileAttributeView.class, options); 134 Files.setAttribute(file, name, valueAsBytes); 135 byte[] actualAsBytes = (byte[])Files.getAttribute(file, name); 138 Map<String,?> map = Files.readAttributes(file, nam 146 miscTests(final Path file) argument [all...] |
/openjdk7/jdk/test/java/rmi/MarshalledObject/compare/ |
H A D | Compare.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 85 static MarshalledObject setupObjects(String lengthStr, File file) argument 90 ObjectInputStream in = new ObjectInputStream(new FileInputStream(file));
|
/openjdk7/jdk/src/share/classes/sun/security/ssl/ |
H A D | TrustManagerFactoryImpl.java | 8 * 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 106 * Try to get an InputStream based on the file we pass in. 108 private static FileInputStream getFileInputStream(final File file) argument 114 if (file.exists()) { 115 return new FileInputStream(file);
|
/openjdk7/jdk/src/share/classes/sun/tools/java/ |
H A D | ClassFile.java | 8 * 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 35 * This class is used to represent a file loaded from the class path, and 36 * can either be a regular file or a zip file entry. 38 * WARNING: The contents of this source file are not part of any 45 * Non-null if this represents a regular file 47 private File file; field in class:ClassFile 50 * Non-null if this represents a zip file entr 58 ClassFile(File file) argument [all...] |
/openjdk7/jdk/test/java/util/Formatter/ |
H A D | FailingConstructors.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 37 import java.nio.file.Files; 43 static final String FILE_CONTENTS = "This is a small file!"; 48 /* create the file and write its contents */ 49 File file = File.createTempFile(fileName, null); 50 file.deleteOnExit(); 51 Files.write(file.toPath(), FILE_CONTENTS.getBytes()); 53 test(true, file); 54 file.delete(); 57 private static void test(boolean exists, File file) throw argument 97 check(boolean exists, File file) argument 107 verifyContents(File file) argument [all...] |
/openjdk7/jdk/test/java/util/Scanner/ |
H A D | FailingConstructors.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 36 import java.nio.file.Files; 42 static final String FILE_CONTENTS = "This is a small file!"; 47 /* create the file and write its contents */ 48 File file = File.createTempFile(fileName, null); 49 file.deleteOnExit(); 50 Files.write(file.toPath(), FILE_CONTENTS.getBytes()); 52 test(true, file); 53 file.delete(); 56 private static void test(boolean exists, File file) throw argument 96 check(boolean exists, File file) argument 106 verifyContents(File file) argument [all...] |
/openjdk7/jdk/test/sun/net/www/protocol/jar/jarbug/src/test/ |
H A D | JarTest.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 56 File file = null; 60 file = new File(dir, resName); 62 fileOut = new FileOutputStream(file); 86 return file; 103 protected boolean deleteRecursively(File file) { argument 107 children = file.listFiles(); 113 result = result && file.delete();
|
/openjdk7/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/protocol/file/ |
H A D | MonitoredHostProvider.java | 8 * 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 * <em>file:</em> protocol of the HotSpot PerfData monitoring implementation. 44 * The default polling interval. Not used by the <em>file:</em> protocol. 68 * Note - the <em>file:</em> protocol silently ignores the 73 // don't attempt to resolve 'file:' based vmid 87 * Note - the <em>file:</em> protocol currenly does not support 92 // no HostListener support for 'file [all...] |
/openjdk7/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/protocol/local/ |
H A D | PerfDataFile.java | 8 * 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 * name space into the file system name space and vice-versa. 36 * store file for instrumentation shared memory region for a JVM 53 * The file name prefix for PerfData shared memory files. 65 * The file name pattern for PerfData shared memory files. 67 * This pattern must be kept in synch with the file name pattern 73 * The file name pattern for 1.4.1 PerfData shared memory files. 75 * This pattern must be kept in synch with the file nam 235 getLocalVmId(File file) argument [all...] |
/openjdk7/jdk/src/share/classes/sun/net/www/http/ |
H A D | HttpCapture.java | 8 * 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 37 * If set, it should point to a file containing the capture rules. 38 * Format for the file is simple: 41 * - a rule is a pair of a regular expression and file pattern, separated by a comma 43 * that URL will be captured in the associated file. 44 * - if the file name contains a '%d', then that sequence will be replaced by a 47 * - Rules are checked in sequence, in the same order as in the file, until a 57 private File file field in class:HttpCapture [all...] |
/openjdk7/jdk/src/share/classes/sun/nio/fs/ |
H A D | AbstractFileSystemProvider.java | 8 * 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.*; 29 import java.nio.file.spi.FileSystemProvider; 62 abstract DynamicFileAttributeView getFileAttributeView(Path file, argument 67 public final void setAttribute(Path file, argument 76 DynamicFileAttributeView view = getFileAttributeView(file, s[0], options); 83 public final Map<String,Object> readAttributes(Path file, String attributes, LinkOption... options) argument 89 DynamicFileAttributeView view = getFileAttributeView(file, 99 implDelete(Path file, boolean failIfNotExists) argument 102 delete(Path file) argument 107 deleteIfExists(Path file) argument [all...] |
/openjdk7/jdk/src/share/classes/sun/rmi/rmic/newrmic/ |
H A D | BatchEnvironment.java | 8 * 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 54 * WARNING: The contents of this source file are not part of any 117 * Adds the specified file to the list of source files generated 120 public void addGeneratedFile(File file) { argument 121 generatedFiles.add(file);
|
/openjdk7/jdk/src/share/sample/nio/file/ |
H A D | Chmod.java | 41 import java.nio.file.*; 42 import java.nio.file.attribute.*; 43 import static java.nio.file.attribute.PosixFilePermission.*; 44 import static java.nio.file.FileVisitResult.*; 57 * may be used to change a set of file permissions. This method is 58 * intended for use where file permissions are required to be changed in 110 * file permissions 274 * Changes the permissions of the file using the given Changer. 276 static void chmod(Path file, Changer changer) { argument 278 Set<PosixFilePermission> perms = Files.getPosixFilePermissions(file); 302 visitFile(Path file, BasicFileAttributes attrs) argument 315 visitFileFailed(Path file, IOException exc) argument [all...] |