Searched refs:file (Results 226 - 250 of 1222) sorted by relevance

1234567891011>>

/openjdk7/jdk/test/sun/misc/ClassLoaderUtil/
H A DTest.java12 * version 2 for more details (a copy is included in the LICENSE file that
55 File file = new File (srcPath, "test.jar");
56 file = copy (file, destPath);
57 URL url = file.toURL();
66 if (!file.delete()) {
67 throw new RuntimeException ("failed to delete jar file");
/openjdk7/jdk/src/solaris/classes/sun/awt/X11/
H A DXDesktopPeer.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
75 public void open(File file) throws IOException { argument
77 launch(file.toURI());
79 throw new IOException(file.toString());
83 public void edit(File file) throws IOException { argument
88 public void print(File file) throws IOException { argument
/openjdk7/jdk/src/solaris/classes/sun/nio/fs/
H A DSolarisFileStore.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.*;
43 SolarisFileStore(UnixPath file) throws IOException { argument
44 super(file);
57 res = pathconf(file(), _PC_XATTR_ENABLED);
67 for (UnixMountEntry entry: file().getFileSystem().getMountEntries()) {
H A DLinuxUserDefinedFileAttributeView.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.*;
52 private byte[] nameAsBytes(UnixPath file, String name) throws IOException { argument
58 throw new FileSystemException(file.getPathForExceptionMessage(),
87 private final UnixPath file; field in class:LinuxUserDefinedFileAttributeView
90 LinuxUserDefinedFileAttributeView(UnixPath file, boolean followLinks) { argument
91 this.file = file;
[all...]
H A DLinuxFileSystemProvider.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.*;
29 import java.nio.file.attribute.*;
30 import java.nio.file.spi.FileTypeDetector;
87 public <A extends BasicFileAttributes> A readAttributes(Path file, argument
94 getFileAttributeView(file, DosFileAttributeView.class, options);
97 return super.readAttributes(file, type, options);
/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/hotspot/make/
H A DMakefile12 # version 2 for more details (a copy is included in the LICENSE file that
25 # Top level gnumake file for hotspot builds
218 # Export file rule
253 # Export file copy rules
287 $(install-file)
291 $(install-file)
293 $(install-file)
295 $(install-file)
297 $(install-file)
301 $(install-file)
[all...]
/openjdk7/hotspot/src/share/vm/utilities/
H A Dexceptions.cpp12 * version 2 for more details (a copy is included in the LICENSE file that
58 void ThreadShadow::set_pending_exception(oop exception, const char* file, int line) { argument
61 _exception_file = file;
78 bool Exceptions::special_exception(Thread* thread, const char* file, int line, Handle h_exception) { argument
101 thread->set_pending_exception(Universe::vm_exception(), file, line); local
108 bool Exceptions::special_exception(Thread* thread, const char* file, int line, Symbol* h_name, const char* message) { argument
124 thread->set_pending_exception(Universe::vm_exception(), file, line); local
132 void Exceptions::_throw_oop(Thread* thread, const char* file, int line, oop exception) { argument
135 _throw(thread, file, line, h_exception);
138 void Exceptions::_throw(Thread* thread, const char* file, in argument
160 thread->set_pending_exception(h_exception(), file, line); local
167 _throw_msg(Thread* thread, const char* file, int line, Symbol* name, const char* message, Handle h_loader, Handle h_protection_domain) argument
177 _throw_msg_cause(Thread* thread, const char* file, int line, Symbol* name, const char* message, Handle h_cause, Handle h_loader, Handle h_protection_domain) argument
186 _throw_cause(Thread* thread, const char* file, int line, Symbol* name, Handle h_cause, Handle h_loader, Handle h_protection_domain) argument
195 _throw_args(Thread* thread, const char* file, int line, Symbol* name, Symbol* signature, JavaCallArguments *args) argument
208 _throw_msg_cause(Thread* thread, const char* file, int line, Symbol* name, const char* message, Handle h_cause) argument
211 _throw_msg(Thread* thread, const char* file, int line, Symbol* name, const char* message) argument
214 _throw_cause(Thread* thread, const char* file, int line, Symbol* name, Handle h_cause) argument
219 throw_stack_overflow_exception(Thread* THREAD, const char* file, int line, methodHandle method) argument
236 fthrow(Thread* thread, const char* file, int line, Symbol* h_name, const char* format, ...) argument
[all...]
/openjdk7/jdk/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/
H A DScanDirConfigTest.java86 final File file = File.createTempFile("testconf",".xml");
87 final ScanDirConfig instance = new ScanDirConfig(file.getAbsolutePath());
92 dir.setRootDirectory(file.getParent());
94 XmlConfigUtils.write(bean,new FileOutputStream(file),false);
99 XmlConfigUtils.write(bean,new FileOutputStream(file),false);
115 final File file = File.createTempFile("testconf",".xml");
121 manager.createOtherConfigurationMBean("testSave",file.getAbsolutePath());
128 dir.setRootDirectory(file.getParent());
133 new XmlConfigUtils(file.getAbsolutePath()).readFromFile();
141 new XmlConfigUtils(file
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/bcel/internal/classfile/
H A DCode.java106 * @param file Input stream
109 Code(int name_index, int length, DataInputStream file, argument
114 file.readUnsignedShort(), file.readUnsignedShort(),
118 code_length = file.readInt();
120 file.readFully(code);
125 exception_table_length = file.readUnsignedShort();
129 exception_table[i] = new CodeException(file);
134 attributes_count = file.readUnsignedShort();
137 attributes[i] = Attribute.readAttribute(file, constant_poo
190 dump(DataOutputStream file) argument
[all...]
H A DConstantFieldref.java78 * Initialize instance from file data.
80 * @param file input stream
83 ConstantFieldref(DataInputStream file) throws IOException argument
85 super(Constants.CONSTANT_Fieldref, file);
/openjdk7/jdk/test/java/nio/file/Files/
H A DTemporaryFiles.java12 * version 2 for more details (a copy is included in the LICENSE file that
30 import java.nio.file.*;
31 import static java.nio.file.StandardOpenOption.*;
32 import java.nio.file.attribute.*;
38 static void checkInDirectory(Path file, Path dir) { argument
41 if (!file.getParent().equals(dir))
48 Path file = (dir == null) ?
52 // check file name
53 String name = file.getFileName().toString();
61 // check file i
[all...]
/openjdk7/jdk/src/share/classes/java/nio/file/
H A DFileSystem.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 java.nio.file;
28 import java.nio.file.attribute.*;
29 import java.nio.file.spi.FileSystemProvider;
35 * Provides an interface to a file system and is the factory for objects to
36 * access files and other objects in the file system.
38 * <p> The default file system, obtained by invoking the {@link FileSystems#getDefault
39 * FileSystems.getDefault} method, provides access to the file syste
[all...]
/openjdk7/hotspot/src/share/tools/ProjectCreator/
H A DFileTreeCreatorVC7.java1 import static java.nio.file.FileVisitResult.CONTINUE;
4 import java.nio.file.FileSystems;
5 import java.nio.file.FileVisitResult;
6 import java.nio.file.Files;
7 import java.nio.file.Path;
8 import java.nio.file.attribute.BasicFileAttributes;
19 public FileVisitResult visitFile(Path file, BasicFileAttributes attr) { argument
24 String fileName = file.getFileName().toString();
26 // usePch applies to all configs for a file.
35 } else if (cfg.matchesIgnoredPath(file
149 visitFileFailed(Path file, IOException exc) argument
[all...]
/openjdk7/jdk/test/java/nio/MappedByteBuffer/
H A DForce.java12 * version 2 for more details (a copy is included in the LICENSE file that
40 File file = File.createTempFile("Blah", null);
41 file.deleteOnExit();
42 try (RandomAccessFile raf = new RandomAccessFile(file, "rw")) {
H A DZeroMap.java12 * version 2 for more details (a copy is included in the LICENSE file that
40 File file = File.createTempFile("Blah", null);
41 file.deleteOnExit();
42 try (RandomAccessFile raf = new RandomAccessFile(file, "rw")) {
/openjdk7/jdk/test/java/nio/channels/FileChannel/
H A DClosedChannelTransfer.java12 * version 2 for more details (a copy is included in the LICENSE file that
35 File file = File.createTempFile("test1", null);
36 file.deleteOnExit();
41 file.delete();
/openjdk7/jdk/test/java/nio/file/DirectoryStream/
H A DDriveLetter.java12 * version 2 for more details (a copy is included in the LICENSE file that
31 import java.nio.file.*;
47 // create temporary file in current directory
57 for (Path file : stream) {
58 if (file.equals(expected)) {
65 throw new RuntimeException("Temporary file not found???");
/openjdk7/jdk/test/java/nio/file/Files/walkFileTree/
H A DTerminateWalk.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.*;
58 public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) {
/openjdk7/jdk/test/java/util/jar/JarFile/
H A DScanSignedJar.java12 * version 2 for more details (a copy is included in the LICENSE file that
27 * @summary Check that a signed JAR file containing an unsupported signer info
41 try (JarFile file = new JarFile(new File(System.getProperty("test.src","."),
45 for (Enumeration entries = file.entries(); entries.hasMoreElements();) {
47 try (InputStream jis = file.getInputStream(entry)) {
61 System.out.println("\nJAR file has signed entries");
63 throw new Exception("Failed to detect that the JAR file is signed");
/openjdk7/jdk/src/share/classes/sun/net/util/
H A DURLUtil.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
72 String file = url.getFile();
73 if (file != null) {
74 strForm.append(file);
/openjdk7/jdk/src/share/sample/nio/file/
H A DCopy.java41 import java.nio.file.*;
42 import static java.nio.file.StandardCopyOption.*;
43 import java.nio.file.attribute.*;
44 import static java.nio.file.FileVisitResult.*;
55 * Returns {@code true} if okay to overwrite a file ("cp -i")
57 static boolean okayToOverwrite(Path file) { argument
58 String answer = System.console().readLine("overwrite %s (yes/no)? ", file);
63 * Copy source file to target location. If {@code prompt} is true then
65 * parameter determines if file attributes should be copied/preserved.
81 * A {@code FileVisitor} that copies a file
116 visitFile(Path file, BasicFileAttributes attrs) argument
138 visitFileFailed(Path file, IOException exc) argument
[all...]
/openjdk7/langtools/test/tools/javac/api/
H A DSibling.java12 * version 2 for more details (a copy is included in the LICENSE file that
50 File file = new File("Test.class").getAbsoluteFile();
51 if (!classFile.toUri().equals(file.toURI()))
52 throw new AssertionError("Expected " + file.toURI() + ", got " +
/openjdk7/jdk/test/sun/security/krb5/ktab/
H A DFileKeyTab.java12 * version 2 for more details (a copy is included in the LICENSE file that
26 * @summary KeyTab.getInstance(String) no longer handles keyTabNames with "file:" prefix
51 static void check(String file) throws Exception { argument
52 System.out.println("Checking for " + file + "...");
53 KeyTab kt2 = KeyTab.getInstance(file);
/openjdk7/jdk/make/java/redist/sajdi/
H A DMakefile8 # 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
67 # assume .map file is present if .pdb is present
90 $(install-importonly-file)
93 $(install-import-file)
98 $(install-import-file)
102 $(install-import-file)
105 $(install-import-file)
108 $(install-import-file)
[all...]

Completed in 513 milliseconds

1234567891011>>