/openjdk7/hotspot/test/runtime/8010389/ |
H A D | VMThreadDlopen.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 35 File file = new File("libbroken.so"); 36 file.createNewFile();
|
/openjdk7/langtools/src/share/classes/com/sun/source/util/ |
H A D | SourcePositions.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 41 * Gets the starting position of tree within file. If tree is not found within 42 * file, or if the starting position is not available, 53 * @param file CompilationUnit in which to find tree. 57 long getStartPosition(CompilationUnitTree file, Tree tree); argument 60 * Gets the ending position of tree within file. If tree is not found within 61 * file, or if the starting position is not available, 80 * @param file CompilationUni 84 getEndPosition(CompilationUnitTree file, Tree tree) argument [all...] |
/openjdk7/langtools/test/com/sun/javadoc/testUnnamedPackage/ |
H A D | BadSource.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 24 Just a dummy file that should not cause an error.
|
/openjdk7/jdk/src/share/classes/java/io/ |
H A D | FileWriter.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 * <p>Whether or not a file is available or may be created depends upon the 36 * underlying platform. Some platforms, in particular, allow a file to be 37 * opened for writing by only one <tt>FileWriter</tt> (or other file-writing 39 * will fail if the file involved is already open. 55 * Constructs a FileWriter object given a file name. 58 * @throws IOException if the named file exists but is a directory rather 59 * than a regular file, doe 89 FileWriter(File file) argument 106 FileWriter(File file, boolean append) argument [all...] |
/openjdk7/jdk/src/share/classes/java/nio/file/ |
H A D | FileVisitor.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; 28 import java.nio.file.attribute.BasicFileAttributes; 33 * {@link Files#walkFileTree Files.walkFileTree} methods to visit each file in 34 * a file tree. 37 * Suppose we want to delete a file tree. In that case, each directory should 43 * public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) 46 * Files.delete(file); 135 visitFile(T file, BasicFileAttributes attrs) argument 153 visitFileFailed(T file, IOException exc) argument [all...] |
/openjdk7/jdk/src/share/classes/java/nio/file/attribute/ |
H A D | AclEntryFlag.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.attribute; 42 * added to each new non-directory file created.
|
H A D | AclEntryType.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.attribute; 36 * Explicitly grants access to a file or directory. 41 * Explicitly denies access to a file or directory.
|
H A D | DosFileAttributes.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.attribute; 29 * File attributes associated with a file in a file system that supports 34 * Path file = ... 35 * DosFileAttributes attrs = Files.readAttributes(file, DosFileAttributes.class); 48 * to prevent files from being deleted or updated. Whether the file system 59 * <p> This attribute is often used to indicate if the file i [all...] |
H A D | FileAttribute.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.attribute; 29 * An object that encapsulates the value of a file attribute that can be set 30 * atomically when creating a new file or directory by invoking the {@link 31 * java.nio.file.Files#createFile createFile} or {@link 32 * java.nio.file.Files#createDirectory createDirectory} methods. 34 * @param <T> The type of the file attribute value
|
H A D | UserPrincipal.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.attribute; 32 * to objects in a file system. 34 * <p> On many platforms and file systems an entity requires appropriate access 35 * rights or permissions in order to access objects in a file system. The 38 * enforce privilege separation then a file in the file system may have an 48 * PosixFileAttributeView} provide access to a file' [all...] |
/openjdk7/jdk/src/solaris/classes/sun/nio/fs/ |
H A D | DefaultFileTypeDetector.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.FileSystems; 29 import java.nio.file.spi.FileTypeDetector; 30 import java.nio.file.spi.FileSystemProvider;
|
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/jdk/test/java/nio/file/Files/ |
H A D | CheckPermissions.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 26 * @summary Unit test for java.nio.file.Files 33 import java.nio.file.*; 34 import static java.nio.file.Files.*; 35 import static java.nio.file.StandardOpenOption.*; 36 import java.nio.file.attribute.*; 43 * Checks each method that accesses the file system does the right permission 91 static void assertChecked(Path file, List<String> list) { argument 92 String s = file.toString(); 100 static void assertCheckRead(Path file) { argument 104 assertCheckWrite(Path file) argument 119 assertCheckDelete(Path file) argument 123 assertCheckExec(Path file) argument 147 checkRead(String file) argument 154 checkWrite(String file) argument 161 checkDelete(String file) argument 168 checkExec(String file) argument 175 testBasicFileAttributeView(BasicFileAttributeView view, Path file) argument 188 testPosixFileAttributeView(PosixFileAttributeView view, Path file) argument [all...] |
H A D | DeleteOnClose.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 24 import java.nio.file.*; 25 import static java.nio.file.StandardOpenOption.*; 32 // open file but do not close it. Its existance will be checked by 36 // check temporary file has been deleted after closing it 37 Path file = Files.createTempFile("blah", "tmp"); 38 Files.newByteChannel(file, READ, WRITE, DELETE_ON_CLOSE).close(); 39 if (Files.exists(file)) 40 throw new RuntimeException("Temporary file was not deleted"); 44 // check that DELETE_ON_CLOSE fails when file i [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/src/windows/classes/sun/nio/fs/ |
H A D | WindowsException.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.*; 72 private IOException translateToIOException(String file, String other) { argument 79 return new NoSuchFileException(file, other, null); 81 return new FileAlreadyExistsException(file, other, null); 83 return new AccessDeniedException(file, other, null); 86 return new FileSystemException(file, other, errorString()); 89 void rethrowAsIOException(String file) throw argument 94 rethrowAsIOException(WindowsPath file, WindowsPath other) argument 101 rethrowAsIOException(WindowsPath file) argument 105 asIOException(WindowsPath 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/langtools/test/tools/javac/6257443/ |
H A D | T6257443.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 27 * @summary compiler can produce a .class file in some source output modes 53 String file = args[1]; 56 URL u = find(file); 58 throw new Error("file " + file + " found unexpectedly"); 61 URL u = find(file); 63 throw new Error("file " + file + " not found");
|
/openjdk7/jdk/test/javax/swing/JFileChooser/7036025/ |
H A D | bug7036025.java | 12 * version 2 for more details (a copy is included in the LICENSE file that 46 File file = new File(DIR); 48 if (!file.exists()) { 49 if (!file.mkdir()) { 53 file.deleteOnExit(); 58 new JFileChooser(file);
|
/openjdk7/jdk/src/share/sample/nio/file/ |
H A D | FileType.java | 41 import java.nio.file.*; 47 System.err.println("usage: java FileType file..."); 51 Path file = Paths.get(arg); 53 if (Files.isDirectory(file)) { 56 type = Files.probeContentType(file); 60 System.out.format("%s\t%s%n", file, type);
|
/openjdk7/jdk/test/java/util/zip/ |
H A D | 3GBZipFiles.sh | 12 # version 2 for more details (a copy is included in the LICENSE file that 26 # @summary Check support for jar file members with sizes > 2GB 38 # Testing strategy: We want to test for size limits on the Jar file 42 # possible to store more than 6GB of actual data in a zip file, if we 101 for file in $filelist; do 102 buildFile "$filetype" "$file" 109 for file in $filelist; do 110 case "$file" in 114 case "`$JAR tvf $jarFile $file`" in 115 *"$size"*"$file"*) [all...] |
/openjdk7/jdk/src/windows/classes/sun/misc/ |
H A D | FileURLMapper.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 * (Windows) Platform specific handling for file: URLs . In particular deals 42 String file; field in class:FileURLMapper 54 if (file != null) { 55 return file; 62 file = "\\\\"+ s.replace('/', '\\'); 63 return file; 66 file [all...] |
/openjdk7/jaxp/src/com/sun/org/apache/bcel/internal/classfile/ |
H A D | ClassParser.java | 66 * Wrapper class that parses a given Java .class file. The method <A 75 * further details about the structure of a bytecode file. 80 private DataInputStream file; field in class:ClassParser 91 private boolean is_zip; // Loaded from zip file 98 * @param file Input stream 101 public ClassParser(InputStream file, String file_name) { argument 104 String clazz = file.getClass().getName(); // Not a very clean solution ... 107 if(file instanceof DataInputStream) // Is already a data stream 108 this.file = (DataInputStream)file; [all...] |
/openjdk7/corba/make/common/internal/ |
H A D | Resources.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 41 # Note that only the file name of the base bundle is given; localized versions 57 # The relative path to the properties file becomes a relative path to a 58 # java source file. 93 $(foreach file,$(RESOURCE_BUNDLES_JAVA), \ 95 $(basename $(file))_$(locale).java)) 104 $(foreach file,$(RESOURCE_BUNDLES_COMPILED_PROPERTIES),\ 106 $(basename $(file)) [all...] |