/libcore/ojluni/src/main/java/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...] |
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/ |
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 26 package sun.net.www.protocol.file; 40 * Open an file input stream given a URL. 55 * Ugly backwards compatibility. Flip any file separator 57 * and "fixes" win32 file paths. According to RFC 2396, 60 * performed this "fixup" behavior in the file URL parsing code 80 File file = new File(ParseUtil.decode(u.getPath())); 81 return createFileURLConnection(u, file); 110 createFileURLConnection(URL u, File file) argument [all...] |
/libcore/ojluni/src/test/java/nio/file/attribute/ |
H A D | BasicFileAttributeViewTest.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 // jdk/test/java/nio/file/attribute/BasicFileAttributeView/Basic.java 32 package test.java.nio.file.attribute; 34 import test.java.nio.file.TestUtil; 36 import java.nio.file.*; 37 import java.nio.file.attribute.*; 55 check(!attrs.isRegularFile(), "is not a regular file"); 65 static void checkAttributesOfFile(Path dir, Path file) argument 68 BasicFileAttributes attrs = Files.readAttributes(file, BasicFileAttribute [all...] |
H A D | PosixFileAttributeViewTest.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 // jdk/test/java/nio/file/attribute/PosixFileAttributeView/Basic.java 32 package test.java.nio.file.attribute; 34 import test.java.nio.file.TestUtil; 36 import java.nio.file.*; 37 import static java.nio.file.LinkOption.*; 38 import java.nio.file.attribute.*; 54 static void testPermissions(Path file, String mode) throws IOException { argument 59 Files.setPosixFilePermissions(file, perm 98 createWithPermissions(Path file, String mode) argument [all...] |
/libcore/benchmarks/src/benchmarks/ |
H A D | ZipFileBenchmark.java | 5 * you may not use this file except in compliance with the License. 33 private File file; field in class:ZipFileBenchmark 39 file = File.createTempFile(getClass().getName(), ".zip"); 40 file.deleteOnExit(); 41 writeEntries(new ZipOutputStream(new FileOutputStream(file)), numEntries, 0); 42 ZipFile zipFile = new ZipFile(file); 51 ZipFile zf = new ZipFile(file);
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
H A D | AccessDeniedExceptionTest.java | 5 * you may not use this file except in compliance with the License. 17 package libcore.java.nio.file; 22 import java.nio.file.AccessDeniedException; 23 import java.nio.file.FileSystemException; 29 AccessDeniedException exception = new AccessDeniedException("file"); 30 assertEquals("file", exception.getFile()); 38 AccessDeniedException exception = new AccessDeniedException("file", "otherFile", "reason"); 39 assertEquals("file", exception.getFile()); 84 assertEquals("file", exception.getFile());
|
H A D | FileAlreadyExistsExceptionTest.java | 5 * you may not use this file except in compliance with the License. 17 package libcore.java.nio.file; 22 import java.nio.file.FileAlreadyExistsException; 23 import java.nio.file.FileSystemException; 28 FileAlreadyExistsException exception = new FileAlreadyExistsException("file"); 29 assertEquals("file", exception.getFile()); 37 FileAlreadyExistsException exception = new FileAlreadyExistsException("file", "otherFile", 39 assertEquals("file", exception.getFile()); 85 assertEquals("file", exception.getFile());
|
H A D | FileSystemExceptionTest.java | 5 * you may not use this file except in compliance with the License. 17 package libcore.java.nio.file; 22 import java.nio.file.FileSystemException; 28 FileSystemException exception = new FileSystemException("file"); 29 assertEquals("file", exception.getFile()); 36 FileSystemException exception = new FileSystemException("file", "otherFile", "reason"); 37 assertEquals("file", exception.getFile()); 82 assertEquals("file", exception.getFile()); 88 FileSystemException exception = new FileSystemException("file", "otherFile", "reason"); 89 assertEquals("file [all...] |
H A D | InvalidPathExceptionTest.java | 5 * you may not use this file except in compliance with the License. 17 package libcore.java.nio.file; 21 import java.nio.file.InvalidPathException;
|
H A D | LinuxFileSystemTestData.java | 5 * you may not use this file except in compliance with the License. 17 package libcore.java.nio.file; 19 import java.nio.file.FileSystemNotFoundException; 20 import java.nio.file.InvalidPathException; 25 * The class provides test cases to libcore.java.nio.file.PathsTest#test_get_URI, 26 * libcore.java.nio.file.PathsTest#test_get_String, 27 * libcore.java.nio.file.LinuxFileSystemTest#test_getPath 54 // only scheme supported by it is "file". 56 inputOutputTestCases.add(new TestData("/d1", "file:///d1")); 57 inputOutputTestCases.add(new TestData("/", "file [all...] |
H A D | NoSuchFileExceptionTest.java | 5 * you may not use this file except in compliance with the License. 17 package libcore.java.nio.file; 22 import java.nio.file.FileSystemException; 23 import java.nio.file.NoSuchFileException; 28 NoSuchFileException exception = new NoSuchFileException("file"); 29 assertEquals("file", exception.getFile()); 37 NoSuchFileException exception = new NoSuchFileException("file", "otherFile", "reason"); 38 assertEquals("file", exception.getFile()); 83 assertEquals("file", exception.getFile());
|
H A D | NotLinkExceptionTest.java | 5 * you may not use this file except in compliance with the License. 17 package libcore.java.nio.file; 22 import java.nio.file.FileSystemException; 23 import java.nio.file.NotLinkException; 28 NotLinkException exception = new NotLinkException("file"); 29 assertEquals("file", exception.getFile()); 37 NotLinkException exception = new NotLinkException("file", "otherFile", "reason"); 38 assertEquals("file", exception.getFile()); 81 assertEquals("file", exception.getFile());
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
H A D | OldAndroidZipStressTest.java | 5 * you may not use this file except in compliance with the License. 38 public void checkJarCertificates(File file) throws Exception { argument 39 JarFile jarFile = new JarFile(file); 71 for (File file : getFiles()) { 72 checkJarCertificates(file); 81 for (File file : getFiles()) { 82 System.out.println("ZIP stress test processing " + file + "..."); 84 ZipFile zip = new ZipFile(file); 100 for (File file : getFiles()) { 101 System.out.println("ZIP stress test processing " + file [all...] |
/libcore/ojluni/src/main/java/java/nio/file/ |
H A D | CopyMoveHelper.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.*; 41 * Parses the arguments for a file copy operation. 75 * Converts the given array of options for moving a file to options suitable 76 * for copying the file when a move is implemented as copy + delete. 108 // attributes of source file 121 // create directory or copy file [all...] |
H A D | FileStore.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.*; 33 * partition, volume, concrete file system or other implementation specific means 34 * of file storage. The {@code FileStore} for where a file is stored is obtained 35 * by invoking the {@link Files#getFileStore getFileStore} method, or all file 39 * <p> In addition to the methods defined by this class, a file stor [all...] |
H A D | FileSystems.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.spi.FileSystemProvider; 37 * Factory methods for file systems. This class defines the {@link #getDefault 38 * getDefault} method to get the default file system and factory methods to 39 * construct other types of file systems. 43 * provider, identified by the URI scheme "file", creates the {@link FileSystem} 44 * that provides access to the file system [all...] |
H A D | FileTreeIterator.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; 35 import java.nio.file.FileTreeWalker.Event; 38 * An {@code Iterator to iterate over the nodes of a file tree. 44 * Path path = ev.file(); 56 * Creates a new iterator to walk the file tree starting at the given file. 61 * if an I/O errors occurs opening the starting file [all...] |
H A D | InvalidPathException.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; 31 * the path string is invalid for other file system specific reasons.
|
H A D | StandardOpenOption.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; 46 * If the file is opened for {@link #WRITE} access then bytes will be written 47 * to the end of the file rather than the beginning. 49 * <p> If the file is opened for write access by other programs, then it 50 * is file system specific if writing to the end of the file is atomic. 55 * If the file alread [all...] |
H A D | StandardWatchEventKinds.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;
|
H A D | WatchEvent.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;
|
/libcore/ojluni/src/main/java/java/nio/file/attribute/ |
H A D | BasicFileAttributeView.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; 31 * A file attribute view that provides a view of a <em>basic set</em> of file 32 * attributes common to many file systems. The basic set of file attributes 33 * consist of <em>mandatory</em> and <em>optional</em> file attributes as 36 * <p> The file attribute [all...] |
H A D | BasicFileAttributes.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 * Basic attributes associated with a file in a file system. 31 * <p> Basic file attributes are attributes that are common to many file systems 32 * and consist of mandatory and optional file attributes as defined by this 37 * Path file [all...] |
H A D | DosFileAttributeView.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; 31 * A file attribute view that provides a view of the legacy "DOS" file attributes. 32 * These attributes are supported by file systems such as the File Allocation 37 * to indicate if the file is read-only, hidden, a system file, or archived. 39 * <p> Where dynamic access to file attribute [all...] |
H A D | PosixFileAttributeView.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; 28 import java.nio.file.*; 33 * A file attribute view that provides a view of the file attributes commonly 34 * associated with files on file systems used by operating systems that implement 38 * POSIX</a> family of standards commonly use file systems that have a 39 * file <e [all...] |