/openjdk7/jdk/test/java/security/Security/ClassLoaderDeadlock/ |
H A D | Deadlock2.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 29 File file = new File("object.tmp"); 30 final byte[] bytes = new byte[(int) file.length()]; 31 FileInputStream fileInputStream = new FileInputStream(file); 33 if (read != file.length()) {
|
/openjdk7/jdk/test/java/security/cert/CertificateFactory/openssl/ |
H A D | OpenSSLCert.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 31 import java.nio.file.Files; 32 import java.nio.file.Paths; 53 for (String file: files) { 54 Files.copy(Paths.get(here, file), fout);
|
/openjdk7/jdk/src/share/sample/nio/file/ |
H A D | DiskUsage.java | 41 import java.nio.file.*; 42 import java.nio.file.attribute.*; 75 for (String file: args) { 76 FileStore store = Files.getFileStore(Paths.get(file));
|
/openjdk7/jdk/make/javax/swing/ |
H A D | Makefile | 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 $(install-file) 56 $(install-file) 59 $(install-file) 62 $(install-file)
|
/openjdk7/jdk/src/share/classes/java/nio/file/spi/ |
H A D | FileTypeDetector.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 java.nio.file.spi; 28 import java.nio.file.Path; 32 * A file type detector for probing a file to guess its file type. 34 * <p> A file type detector is a concrete implementation of this class, has a 38 * <p> The means by which a file typ [all...] |
/openjdk7/jdk/src/share/native/sun/awt/debug/ |
H A D | debug_assert.h | 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 50 typedef void (*DASSERT_CALLBACK)(const char * msg, const char * file, int line); 52 extern void DAssert_Impl(const char * msg, const char * file, int line);
|
/openjdk7/langtools/test/tools/javac/ |
H A D | T6413876.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 41 File file = new File(testSrc, T6413876.class.getName()+".java"); 43 int rc = t.run(null, null, null, outOpt, "NotADir", file.getPath());
|
/openjdk7/langtools/test/tools/javac/api/6422327/ |
H A D | T6422327.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 38 File file = new File(test_src, "T6422327.other"); 40 task = tool.getTask(null, fm, null, null, null, fm.getJavaFileObjects(file));
|
/openjdk7/jdk/src/windows/classes/sun/nio/fs/ |
H A D | WindowsFileSystemProvider.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.attribute.*; 58 return "file"; 105 WindowsPath file = (WindowsPath)path; 110 .newFileChannel(file.getPathForWin32Calls(), 111 file.getPathForPermissionCheck(), 115 x.rethrowAsIOException(file); 179 readAttributes(Path file, Class<A> type, LinkOption... options) argument 295 hasDesiredAccess(WindowsPath file, int rights) argument 321 checkReadAccess(WindowsPath file) argument [all...] |
H A D | WindowsFileAttributeViews.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 29 import java.nio.file.attribute.*; 39 final WindowsPath file; field in class:WindowsFileAttributeViews.Basic 42 Basic(WindowsPath file, boolean followLinks) { argument 43 this.file = file; 49 file.checkRead(); 51 return WindowsFileAttributes.get(file, followLink 165 Dos(WindowsPath file, boolean followLinks) argument 288 createBasicView(WindowsPath file, boolean followLinks) argument 292 createDosView(WindowsPath file, boolean followLinks) argument [all...] |
/openjdk7/jdk/src/solaris/classes/sun/nio/fs/ |
H A D | UnixFileSystemProvider.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.attribute.*; 30 import java.nio.file.spi.FileTypeDetector; 60 * Constructs a new file system using the given default directory. 66 return "file"; 115 UnixPath file = UnixPath.toUnixPath(obj); 118 return (V) UnixFileAttributeViews.createBasicView(file, followLink 130 readAttributes(Path file, Class<A> type, LinkOption... options) argument [all...] |
H A D | BsdFileStore.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.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/jaxp/src/com/sun/org/apache/bcel/internal/classfile/ |
H A D | LineNumber.java | 74 private int line_number; // number in source file 84 * Construct object from file stream. 85 * @param file Input stream 88 LineNumber(DataInputStream file) throws IOException argument 90 this(file.readUnsignedShort(), file.readUnsignedShort()); 95 * @param line_number line number in source file 115 * Dump line number/pc pair to file stream in binary format. 117 * @param file Output file strea 120 dump(DataOutputStream file) argument [all...] |
H A D | StackMapType.java | 79 * Construct object from file stream. 80 * @param file Input stream 83 StackMapType(DataInputStream file, ConstantPool constant_pool) throws IOException argument 85 this(file.readByte(), -1, constant_pool); 88 setIndex(file.readShort()); 118 * Dump type entries to file. 120 * @param file Output file stream 123 public final void dump(DataOutputStream file) throws IOException argument 125 file [all...] |
/openjdk7/jdk/test/java/nio/file/Files/walkFileTree/ |
H A D | MaxDepth.java | 12 * 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.*; 42 private int depth(Path file) { 43 Path rp = file.relativize(top); 58 public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) { 59 int d = depth(file);
|
H A D | PrintFileTree.java | 12 * 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.*; 30 * Invokes Files.walkFileTree to traverse a file tree and prints 66 public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) { 67 System.out.println(file); 79 public FileVisitResult visitFileFailed(Path file, IOException exc) 84 System.out.println(file);
|
/openjdk7/langtools/src/share/classes/com/sun/source/util/ |
H A D | TaskEvent.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 46 * For events related to the parsing of a file. 87 private TaskEvent(Kind kind, JavaFileObject file, CompilationUnitTree unit, TypeElement clazz) { argument 89 this.file = file; 99 return file; 113 + file + "," 114 // the compilation unit is identified by the file 119 private JavaFileObject file; field in class:TaskEvent [all...] |
/openjdk7/langtools/src/share/classes/com/sun/tools/javadoc/ |
H A D | SourcePositionImpl.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 46 /** The source file. Returns null if no file information is 48 public File file() { method in class:SourcePositionImpl 52 /** The source file. Returns null if no file information is 58 /** The line in the source file. The first line is numbered 1; 68 /** The column in the source file 81 SourcePositionImpl(FileObject file, int position, Position.LineMap lineMap) argument 89 make(FileObject file, int pos, Position.LineMap lineMap) argument [all...] |
/openjdk7/jdk/test/sun/net/www/protocol/file/ |
H A D | EncodedMultiByteChar.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 27 * @summary Exception when opening file URLConnection with percent encoded 4 byte UTF8 char 43 urlStr = "file://" + System.getProperty("java.io.tmpdir") + "/EncodedMultiByteChar" + 51 File file = null; 53 //Create a file with a 4 byte UTF8 character in its name. 54 file = new File(System.getProperty("java.io.tmpdir") + File.separator + filename + ".txt"); 55 file.createNewFile(); 56 file.deleteOnExit(); 58 FileOutputStream fos = new FileOutputStream(file); 62 System.out.println("Failed to create test file "); [all...] |
/openjdk7/jdk/src/share/classes/sun/nio/fs/ |
H A D | AbstractFileTypeDetector.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.Path; 29 import java.nio.file.spi.FileTypeDetector; 45 * Invokes the appropriate probe method to guess a file's content type, 49 public final String probeContentType(Path file) throws IOException { argument 50 if (file == null) 51 throw new NullPointerException("'file' is null"); 52 String result = implProbeContentType(file); 59 implProbeContentType(Path file) argument [all...] |
/openjdk7/jdk/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/config/ |
H A D | XmlConfigUtilsTest.java | 76 final File file = File.createTempFile("test",".xml"); 77 file.deleteOnExit(); 86 XmlConfigUtils instance = new XmlConfigUtils(file.getPath()); 98 final File file = File.createTempFile("test",".xml"); 99 file.deleteOnExit(); 106 XmlConfigUtils instance = new XmlConfigUtils(file.getPath());
|
/openjdk7/jdk/src/share/sample/scripting/scriptpad/src/scripts/ |
H A D | insertfile.js | 43 * When selected, this menu shows a file dialog box and inserts 44 * contents of the selected file into current document (at the 50 var file = fileDialog(); 51 if (file) { 52 var reader = new java.io.FileReader(file);
|
/openjdk7/jdk/src/share/native/java/util/zip/zlib-1.2.3/ |
H A D | gzio.c | 7 * particular file as subject to the "Classpath" exception as provided 8 * by Oracle in the LICENSE file that accompanied this code. 13 * version 2 for more details (a copy is included in the LICENSE file that 29 * Compile this file with -DNO_GZCOMPRESS to avoid the compression code. 73 #define ASCII_FLAG 0x01 /* bit 0 set: file probably ascii text */ 76 #define ORIG_NAME 0x08 /* bit 3 set: original file name present */ 77 #define COMMENT 0x10 /* bit 4 set: file comment present */ 83 int z_eof; /* set if end of input file */ 84 FILE *file; /* .gz file */ member in struct:gz_stream 627 gzprintf(gzFile file, const char *format, ...) argument [all...] |
/openjdk7/jdk/src/share/classes/java/awt/ |
H A D | Desktop.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 46 * a {@link java.net.URI} or a file. 55 * specified file.</li> 61 * or file. If there is no associated application or the associated 64 * <p> An application is registered to a URI or file type; for 65 * example, the {@code "sxi"} file extension is typically registered 179 * <p>Even when the platform supports an action, a file or URI may 182 * action. But for a specific file, ther 205 checkFileValidation(File file) argument 266 open(File file) argument 297 edit(File file) argument 327 print(File file) argument [all...] |
/openjdk7/jdk/test/java/nio/file/WatchService/ |
H A D | LotsOfEvents.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 31 import java.nio.file.*; 32 import static java.nio.file.StandardWatchEventKinds.*; 165 // events for the same file. 171 Path file = (kind == OVERFLOW) ? null : (Path)event.context(); 173 boolean added = modified.add(file); 179 if (file != null) modified.remove(file); 191 private final Path file; field in class:LotsOfEvents.DirectoryEntry 192 DirectoryEntry(Path file) { argument [all...] |