/openjdk7/langtools/test/tools/javac/tree/ |
H A D | AbstractTreeScannerTest.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 40 * Run the program. A base directory can be provided for file arguments. 43 * @param baseDir base directory for any file arguments. 77 for (File file: files) { 78 if (file.exists()) 79 test(file); 81 error("File not found: " + file); 112 * Test a file. If the file is a directory, it will be recursively scanned 114 * @param file th 116 test(File file) argument 160 read(File file) argument 193 error(JavaFileObject file, String msg) argument 204 error(JavaFileObject file, Tree tree, String msg) argument 285 getLine(JavaFileObject file, JCTree tree) argument [all...] |
/openjdk7/jdk/test/java/io/File/ |
H A D | SymLinks.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 30 import java.nio.file.*; 31 import java.nio.file.attribute.*; 32 import static java.nio.file.LinkOption.*; 41 final static File file = new File(top, "foofile"); field in class:SymLinks 57 FileOutputStream fos = new FileOutputStream(file); 63 mklink(link2file, file); 80 if (file != null) 81 file.delete(); 123 * Returns true if sym links are supported on the file syste [all...] |
/openjdk7/jaxp/src/com/sun/org/apache/bcel/internal/classfile/ |
H A D | InnerClass.java | 87 * Construct object from file stream. 88 * @param file Input stream 91 InnerClass(DataInputStream file) throws IOException argument 93 this(file.readUnsignedShort(), file.readUnsignedShort(), 94 file.readUnsignedShort(), file.readUnsignedShort()); 123 * Dump inner class attribute to file stream in binary format. 125 * @param file Output file strea 128 dump(DataOutputStream file) argument [all...] |
H A D | InnerClasses.java | 67 * to the source file of this class. 102 * Construct object from file stream. 106 * @param file Input stream 110 InnerClasses(int name_index, int length, DataInputStream file, argument 115 number_of_classes = file.readUnsignedShort(); 119 inner_classes[i] = new InnerClass(file); 132 * Dump source file attribute to file stream in binary format. 134 * @param file Output file strea 137 dump(DataOutputStream file) argument [all...] |
H A D | StackMap.java | 97 * Construct object from file stream. 100 * @param file Input stream 104 StackMap(int name_index, int length, DataInputStream file, argument 109 map_length = file.readUnsignedShort(); 113 map[i] = new StackMapEntry(file, constant_pool); 117 * Dump line number table attribute to file stream in binary format. 119 * @param file Output file stream 122 public final void dump(DataOutputStream file) throws IOException argument 124 super.dump(file); [all...] |
H A D | ConstantClass.java | 83 * Initialize instance from file data. 85 * @param file Input stream 88 ConstantClass(DataInputStream file) throws IOException argument 90 this(file.readUnsignedShort()); 114 * Dump constant class to file stream in binary format. 116 * @param file Output file stream 119 public final void dump(DataOutputStream file) throws IOException argument 121 file.writeByte(tag); 122 file [all...] |
H A D | ConstantString.java | 82 * Initialize instance from file data. 84 * @param file Input stream 87 ConstantString(DataInputStream file) throws IOException argument 89 this((int)file.readUnsignedShort()); 110 * Dump constant field reference to file stream in binary format. 112 * @param file Output file stream 115 public final void dump(DataOutputStream file) throws IOException argument 117 file.writeByte(tag); 118 file [all...] |
H A D | Deprecated.java | 97 * Construct object from file stream. 100 * @param file Input stream 104 Deprecated(int name_index, int length, DataInputStream file, argument 111 file.readFully(bytes); 128 * Dump source file attribute to file stream in binary format. 130 * @param file Output file stream 133 public final void dump(DataOutputStream file) throws IOException argument 135 super.dump(file); [all...] |
H A D | SourceFile.java | 66 * to the source file of this class. At most one SourceFile attribute 86 * Construct object from file stream. 89 * @param file Input stream 93 SourceFile(int name_index, int length, DataInputStream file, argument 96 this(name_index, length, file.readUnsignedShort(), constant_pool); 106 * string will be interpreted as the name of the file from which this 108 * of the directory contqining the file or an absolute path; this 131 * Dump source file attribute to file stream in binary format. 133 * @param file Outpu 136 dump(DataOutputStream file) argument [all...] |
H A D | Synthetic.java | 103 * Construct object from file stream. 106 * @param file Input stream 110 Synthetic(int name_index, int length, DataInputStream file, argument 117 file.readFully(bytes); 132 * Dump source file attribute to file stream in binary format. 134 * @param file Output file stream 137 public final void dump(DataOutputStream file) throws IOException argument 139 super.dump(file); [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/org/jvnet/mimepull/ |
H A D | WeakDataFile.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 49 private final File file; field in class:WeakDataFile 52 WeakDataFile(DataFile df, File file) { argument 55 this.file = file; 57 raf = new RandomAccessFile(file, "rw"); 84 LOGGER.fine("Deleting file = "+file [all...] |
/openjdk7/jdk/test/java/nio/file/ |
H A D | TestUtil.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.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/jdk/test/java/nio/file/attribute/BasicFileAttributeView/ |
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.BasicFileAttributeView 30 import java.nio.file.*; 31 import java.nio.file.attribute.*; 48 check(!attrs.isRegularFile(), "is not a regular file"); 58 static void checkAttributesOfFile(Path dir, Path file) argument 61 BasicFileAttributes attrs = Files.readAttributes(file, BasicFileAttributes.class); 62 check(attrs.isRegularFile(), "is a regular file"); 68 File f = new File(file.toString()); 73 // copy last-modified time and file creat [all...] |
/openjdk7/jdk/test/java/nio/file/attribute/AclFileAttributeView/ |
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.AclFileAttribueView 30 import java.nio.file.*; 31 import java.nio.file.attribute.*; 35 import static java.nio.file.attribute.AclEntryType.*; 36 import static java.nio.file.attribute.AclEntryPermission.*; 37 import static java.nio.file.attribute.AclEntryFlag.*; 49 Path file = dir.resolve("foo"); 50 if (Files.notExists(file)) 51 Files.createFile(file); [all...] |
/openjdk7/jdk/src/share/classes/sun/net/www/protocol/jar/ |
H A D | Handler.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 103 String file = u.getFile(); 104 int sep = file.indexOf(separator); 107 return h + file.hashCode(); 110 String fileWithoutEntry = file.substring(0, sep); 118 String entry = file.substring(sep + 2); 128 String file = null; 136 file [all...] |
/openjdk7/langtools/test/tools/javap/ |
H A D | T6474890.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 61 void compileTestFile(File classDir, File file) { argument 63 new String[] { "-d", classDir.getPath(), file.getPath() }); 70 for (File file: dir.listFiles()) { 71 if (file.isFile()) { 72 byte[] data = new byte[(int) file.length()]; 73 DataInputStream in = new DataInputStream(new FileInputStream(file)); 76 zipOut.putNextEntry(new ZipEntry(file.getName()));
|
/openjdk7/jdk/make/java/nio/ |
H A D | FILES_java.gmk | 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 79 java/nio/file/AccessDeniedException.java \ 80 java/nio/file/AccessMode.java \ 81 java/nio/file/AtomicMoveNotSupportedException.java \ 82 java/nio/file/ClosedDirectoryStreamException.java \ 83 java/nio/file/ClosedFileSystemException.java \ 84 java/nio/file/ClosedWatchServiceException.java \ 85 java/nio/file/CopyMoveHelpe [all...] |
/openjdk7/jdk/src/share/classes/com/sun/media/sound/ |
H A D | ModelByteBuffer.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 44 private File file; field in class:ModelByteBuffer 58 raf = new RandomAccessFile(root.file, "r"); 157 if (root.file != null) { 158 file = root.file; 179 public ModelByteBuffer(File file) { argument 180 this.file 185 ModelByteBuffer(File file, long offset, long len) argument [all...] |
/openjdk7/hotspot/src/share/tools/ProjectCreator/ |
H A D | FileTreeCreatorVC10.java | 1 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(); 28 // usePch applies to all configs for a file. 37 } else if (cfg.matchesIgnoredPath(file 133 visitFileFailed(Path file, IOException exc) argument [all...] |
/openjdk7/jdk/test/java/nio/file/spi/ |
H A D | TestProvider.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 24 import java.nio.file.spi.FileSystemProvider; 25 import java.nio.file.*; 26 import java.nio.file.attribute.*; 42 return "file"; 61 public void setAttribute(Path file, String attribute, Object value, argument 69 public Map<String,Object> readAttributes(Path file, String attributes, argument 77 public <A extends BasicFileAttributes> A readAttributes(Path file, argument 86 public <V extends FileAttributeView> V getFileAttributeView(Path file, argument 95 public void delete(Path file) throw argument 147 newByteChannel(Path file, Set<? extends OpenOption> options, FileAttribute<?>... attrs) argument 157 isHidden(Path file) argument 162 getFileStore(Path file) argument 167 isSameFile(Path file, Path other) argument 172 checkAccess(Path file, AccessMode... modes) argument [all...] |
/openjdk7/jdk/src/share/classes/sun/net/www/protocol/file/ |
H A D | FileURLConnection.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 27 * Open an file input stream given a URL. 32 package sun.net.www.protocol.file; 58 File file; field in class:FileURLConnection 67 protected FileURLConnection(URL u, File file) { argument 69 this.file = file; 81 filename = file [all...] |
/openjdk7/jdk/src/macosx/classes/com/apple/laf/ |
H A D | AquaFileView.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 static final int kLSItemInfoIsApplication = 0x00000004; /* Single-file or packaged application*/ 48 static final int kLSItemInfoIsAliasFile = 0x00000010; /* Alias file (includes sym links)*/ 100 FileInfo(final File file){ argument 101 isDirectory = file.isDirectory(); 102 absolutePath = file.getAbsolutePath(); 118 FileInfo getFileInfoFor(final File file) { argument 119 final FileInfo info = cache.get(file); [all...] |
/openjdk7/jdk/test/java/nio/channels/FileChannel/ |
H A D | ReleaseOnCloseDeadlock.java | 12 * 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/Files/walkFileTree/ |
H A D | SkipSiblings.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.*; 66 public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) { 67 check(file); 68 if (skip(file))
|
/openjdk7/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ |
H A D | ZipDirectoryStream.java | 43 import java.nio.file.DirectoryStream; 44 import java.nio.file.ClosedDirectoryStreamException; 45 import java.nio.file.NotDirectoryException; 46 import java.nio.file.Path; 65 DirectoryStream.Filter<? super java.nio.file.Path> filter)
|