/openjdk7/jdk/test/demo/zipfs/ |
H A D | Basic.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.*; 26 import java.nio.file.spi.FileSystemProvider; 80 throw new RuntimeException("Expected file not found"); 82 // Test: copy file from zip file to current (scratch) directory 83 Path source = fs.getPath("/META-INF/services/java.nio.file.spi.FileSystemProvider"); 111 // FileVisitor that pretty prints a file tree 134 public FileVisitResult visitFile(Path file, argument [all...] |
/openjdk7/jdk/test/java/io/Externalizable/compatibility/ |
H A D | ExternalizableBlockData.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 101 static byte[] getFileBytes(File file) throws IOException { argument 102 FileInputStream fin = new FileInputStream(file);
|
/openjdk7/jdk/test/java/net/URLClassLoader/ |
H A D | ClassPathTest.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 34 * 3. have that class use a dependent class in a different JAR file 64 System.err.println("Could not find jar file " + jarFileName); 129 private static URL getUrl(File file) { argument 132 name = file.getCanonicalPath(); 134 name = file.getAbsolutePath(); 141 return new URL( "file:" + name);
|
/openjdk7/jdk/test/java/nio/channels/FileChannel/ |
H A D | TransferToChannel.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 37 static File file; field in class:TransferToChannel 44 file = File.createTempFile("readingin", null); 46 file.deleteOnExit(); 48 generateBigFile(file); 49 FileInputStream fis = new FileInputStream(file); 54 file.delete(); 62 System.err.println("Transferred file..."); 70 System.err.println("Transferred file..."); 125 static void generateBigFile(File file) throw argument [all...] |
/openjdk7/jdk/test/java/nio/file/Files/ |
H A D | TemporaryFiles.java | 12 * 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/test/java/nio/file/Files/walkFileTree/ |
H A D | WalkWithSecurity.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 33 import java.nio.file.*; 34 import java.nio.file.attribute.BasicFileAttributes; 57 // Install security manager with the given policy file 93 throw new RuntimeException("Starting file not visited"); 95 throw new RuntimeException("More than starting file visited"); 123 public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) { argument 124 System.out.println(file);
|
/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...] |
/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/PosixFileAttributeView/ |
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.PosixFileAttributeView 30 import java.nio.file.*; 31 import static java.nio.file.LinkOption.*; 32 import java.nio.file.attribute.*; 47 static void testPermissions(Path file, String mode) throws IOException { argument 52 Files.setPosixFilePermissions(file, perms); 53 Set<PosixFilePermission> current = Files.getPosixFilePermissions(file); 61 Files.setAttribute(file, "posix:permissions", perms); 62 current = (Set<PosixFilePermission>)Files.getAttribute(file, "posi 91 createWithPermissions(Path file, String mode) argument [all...] |
/openjdk7/jdk/test/sun/security/util/Resources/ |
H A D | NewResourcesNames.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 168 String file = "sun/security/tools/KeyTool.java"; 169 System.err.println("Working on " + file); 170 File origFile = new File(file); 171 File tmpFile = new File(file + ".tmp"); 245 * Rewrites a file using a pattern. The name string should be right after 248 private static Set<String> rewriteFile(String file, String pattern) argument 251 System.err.println("Working on " + file); 268 File origFile = new File(file); 269 File tmpFile = new File(file [all...] |
/openjdk7/langtools/src/share/classes/com/sun/tools/apt/mirror/util/ |
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 43 private int pos; // file position, in javac's internal format 77 public File file() { method in class:SourcePositionImpl
|
/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/src/share/classes/sun/security/util/ |
H A D | PathList.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 60 * of directory and JAR file URLs. 63 * @return the resulting array of directory and JAR file URLs 84 * Returns the directory or JAR file URL corresponding to the specified 85 * local file name. 87 * @param file the File object 88 * @return the resulting directory or JAR file URL, or null if unknown 90 private static URL fileToURL(File file) { argument [all...] |
/openjdk7/jdk/test/javax/crypto/sanity/ |
H A D | CheckManifestForRelease.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 80 static private String formatURL(String dir, String file) { argument 81 return "jar:file:///" + dir + "/" + file + "!/"; 93 static private void checkManifest(String dir, String file) argument 96 System.out.println("Checking: " + file); 98 String url = formatURL(dir, file); 108 * If the file doesn't exist (e.g. mscapi on solaris), 111 System.out.println(" " + file + " not found, skipping...");
|
/openjdk7/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/protocol/file/ |
H A D | FileMonitoredVm.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; 37 * <em>file:</em> protcol for the HotSpot PerfData monitoring implementation. 41 * <em>file</em> URI to a file containing the instrmentation buffer data. 51 * @param vmid the vm identifier referring to the file 63 * Note - the <em>file:</em> protocol currently does not support 71 * Note - the <em>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...] |
H A D | AbstractUserDefinedFileAttributeView.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.UserDefinedFileAttributeView; 42 protected void checkAccess(String file, argument 50 sm.checkRead(file); 52 sm.checkWrite(file);
|
/openjdk7/jdk/src/share/native/sun/misc/ |
H A D | MessageUtils.c | 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 printToFile(JNIEnv *env, jstring s, FILE *file) argument 54 jio_fprintf(file, "%s", sConverted);
|
/openjdk7/jdk/src/solaris/classes/sun/nio/fs/ |
H A D | LinuxFileStore.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.*; 43 LinuxFileStore(UnixPath file) throws IOException { argument 44 super(file); 52 * Finds, and returns, the mount entry for the file system where the file 57 LinuxFileSystem fs = (LinuxFileSystem)file().getFileSystem(); 62 byte[] rp = UnixNativeDispatcher.realpath(file()); [all...] |
H A D | LinuxFileSystemProvider.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; 87 public <A extends BasicFileAttributes> A readAttributes(Path file, argument 94 getFileAttributeView(file, DosFileAttributeView.class, options); 97 return super.readAttributes(file, type, options);
|
H A D | SolarisFileStore.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.*; 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 D | UnixException.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.*; 77 private IOException translateToIOException(String file, String other) { argument 84 return new AccessDeniedException(file, other, null); 86 return new NoSuchFileException(file, other, null); 88 return new FileAlreadyExistsException(file, other, null); 91 return new FileSystemException(file, other, errorString()); 94 void rethrowAsIOException(String file) throw argument 99 rethrowAsIOException(UnixPath file, UnixPath other) argument 106 rethrowAsIOException(UnixPath file) argument 110 asIOException(UnixPath file) argument [all...] |
/openjdk7/langtools/test/tools/javac/ |
H A D | T6668802.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 62 String[] compileBadFile(File file) throws IOException { argument 64 options.add(file.getPath());
|
/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/langtools/src/share/classes/com/sun/tools/javac/file/ |
H A D | RegularFileObject.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 com.sun.tools.javac.file; 58 final File file; field in class:RegularFileObject 71 this.file = f; 76 return file.toURI().normalize(); 81 return file.getPath(); 96 return new FileInputStream(file); 103 return new FileOutputStream(file); [all...] |