Searched defs:file (Results 1 - 25 of 182) sorted by last modified time

12345678

/libcore/ojluni/src/main/java/java/util/jar/
H A DJarFile.java9 * particular file as subject to the "Classpath" exception as provided
10 * by Oracle in the LICENSE file that accompanied this code.
15 * version 2 for more details (a copy is included in the LICENSE file that
44 * The <code>JarFile</code> class is used to read the contents of a jar file
45 * from any file that can be opened with <code>java.io.RandomAccessFile</code>.
49 * jar file and its entries.
55 * If the verify flag is on when opening a signed jar file, the content of the
56 * file is verified against its signature embedded inside the file. Please note
83 * The JAR manifest file nam
123 JarFile(File file) argument
138 JarFile(File file, boolean verify) argument
159 JarFile(File file, boolean verify, int mode) argument
[all...]
/libcore/ojluni/src/main/java/java/util/zip/
H A DZipFile.java9 * particular file as subject to the "Classpath" exception as provided
10 * by Oracle in the LICENSE file that accompanied this code.
15 * version 2 for more details (a copy is included in the LICENSE file that
55 * This class is used to read entries from a zip file.
66 private final String name; // zip file name
68 private final boolean locsig; // if zip file starts with LOCSIG (usually true)
74 // that doesn't use unlink before closing the file.
81 * Mode flag to open a zip file for reading.
86 * Mode flag to open a zip file and mark it for deletion. The file wil
148 ZipFile(File file, int mode) argument
162 ZipFile(File file) argument
200 ZipFile(File file, int mode, Charset charset) argument
297 ZipFile(File file, Charset charset) argument
[all...]
/libcore/ojluni/src/main/java/sun/net/www/
H A DParseUtil.java8 * 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
229 public String canonizeString(String file) { argument
231 int lim = file.length();
234 while ((i = file.indexOf("/../")) >= 0) {
235 if ((lim = file.lastIndexOf('/', i - 1)) >= 0) {
236 file = file.substring(0, lim) + file
261 fileToEncodedURL(File file) argument
[all...]
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/
H A DFileURLConnection.java8 * 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...]
H A DHandler.java8 * 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/main/java/sun/net/www/protocol/jar/
H A DURLJarFile.java8 * 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
30 import java.nio.file.Files;
31 import java.nio.file.Path;
32 import java.nio.file.StandardCopyOption;
45 /* URL jar file is a common JarFile subtype used for JarURLConnection */
80 public URLJarFile(File file) throws IOException { argument
81 this(file, null);
88 public URLJarFile(File file, URLJarFileCloseControlle argument
[all...]
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DAbstractFileSystemProvider.java8 * 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.spi.FileSystemProvider;
62 abstract DynamicFileAttributeView getFileAttributeView(Path file, argument
67 public final void setAttribute(Path file, argument
76 DynamicFileAttributeView view = getFileAttributeView(file, s[0], options);
83 public final Map<String,Object> readAttributes(Path file, String attributes, LinkOption... options) argument
89 DynamicFileAttributeView view = getFileAttributeView(file,
99 implDelete(Path file, boolean failIfNotExists) argument
102 delete(Path file) argument
107 deleteIfExists(Path file) argument
[all...]
H A DAbstractFileTypeDetector.java8 * 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 DAbstractUserDefinedFileAttributeView.java8 * 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);
H A DLinuxDosFileAttributeView.java8 * 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.*;
38 * Linux implementation of DosFileAttributeView for use on file systems such
65 LinuxDosFileAttributeView(UnixPath file, boolean followLinks) { argument
66 super(file, followLinks);
118 file.checkRead();
120 int fd = file.openForAttributeAccess(followLinks);
181 x.rethrowAsIOException(file);
[all...]
H A DLinuxFileStore.java8 * 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 DLinuxFileSystemProvider.java8 * 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;
49 // Android-changed: Complete information about file systems is neither available to regular
63 // "user" file attribute views which are not supported.
83 // "user" file attribute views which are not supported.
99 public <A extends BasicFileAttributes> A readAttributes(Path file, argument
[all...]
H A DLinuxUserDefinedFileAttributeView.java8 * 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.*;
52 private byte[] nameAsBytes(UnixPath file, String name) throws IOException { argument
58 throw new FileSystemException(file.getPathForExceptionMessage(),
92 private final UnixPath file; field in class:LinuxUserDefinedFileAttributeView
95 LinuxUserDefinedFileAttributeView(UnixPath file, boolean followLinks) { argument
96 this.file = file;
[all...]
H A DUnixException.java8 * 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...]
H A DUnixFileAttributeViews.java8 * 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.*;
39 protected final UnixPath file; field in class:UnixFileAttributeViews.Basic
42 Basic(UnixPath file, boolean followLinks) { argument
43 this.file = file;
49 file
140 Posix(UnixPath file, boolean followLinks) argument
311 Unix(UnixPath file, boolean followLinks) argument
367 createBasicView(UnixPath file, boolean followLinks) argument
371 createPosixView(UnixPath file, boolean followLinks) argument
375 createUnixView(UnixPath file, boolean followLinks) argument
379 createOwnerView(UnixPath file, boolean followLinks) argument
[all...]
H A DUnixFileStore.java8 * 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.*;
43 // original path of file that identified file system
44 private final UnixPath file; field in class:UnixFileStore
52 // return the device ID where the given file resides
53 private static long devFor(UnixPath file) throw argument
62 UnixFileStore(UnixPath file) argument
79 UnixPath file() { method in class:UnixFileStore
[all...]
H A DUnixFileSystemProvider.java8 * 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 DUnixSecureDirectoryStream.java8 * 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.*;
103 UnixPath file = getName(obj);
104 UnixPath child = ds.directory().resolve(file);
126 newdfd1 = openat(dfd, file.asByteArray(), flags , 0);
135 throw new NotDirectoryException(file.toString());
136 x.rethrowAsIOException(file);
226 deleteFile(Path file) argument
282 getFileAttributeViewImpl(UnixPath file, Class<V> type, boolean followLinks) argument
326 final UnixPath file; field in class:UnixSecureDirectoryStream.BasicFileAttributeViewImpl
329 BasicFileAttributeViewImpl(UnixPath file, boolean followLinks) argument
445 PosixFileAttributeViewImpl(UnixPath file, boolean followLinks) argument
[all...]
/libcore/ojluni/src/main/native/
H A DUNIXProcess_md.c8 * 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
85 * file descriptors.
166 * no standard (not even de-facto) header file where the
416 /* We're trying to close all file descriptors, but opendir() might
417 * itself be implemented using a file descriptor, and we certainly
419 * opendir() is implemented using a file descriptor, then it uses
420 * the lowest numbered file descriptor, just like open(). So we
430 * 6395699: /proc/self/fd fails to report file descriptor
530 execve_as_traditional_shell_script(const char *file, const char *argv[], const char *const envp[]) argument
553 execve_with_shell_fallback(const char *file, const char *argv[], const char *const envp[]) argument
577 JDK_execvpe(const char *file, const char *argv[], const char *const envp[]) argument
[all...]
H A DUnixFileSystem_md.c8 * 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
122 WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {*/
139 jobject file, jint a)
159 WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
170 jobject file,
177 WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
218 jobject file)
222 WITH_FIELD_PLATFORM_STRING(env, file, id
138 Java_java_io_UnixFileSystem_checkAccess0(JNIEnv *env, jobject this, jobject file, jint a) argument
169 Java_java_io_UnixFileSystem_setPermission0(JNIEnv *env, jobject this, jobject file, jint access, jboolean enable, jboolean owneronly) argument
217 Java_java_io_UnixFileSystem_getLastModifiedTime0(JNIEnv *env, jobject this, jobject file) argument
233 Java_java_io_UnixFileSystem_getLength0(JNIEnv *env, jobject this, jobject file) argument
277 Java_java_io_UnixFileSystem_delete0(JNIEnv *env, jobject this, jobject file) argument
292 Java_java_io_UnixFileSystem_list0(JNIEnv *env, jobject this, jobject file) argument
367 Java_java_io_UnixFileSystem_createDirectory0(JNIEnv *env, jobject this, jobject file) argument
399 Java_java_io_UnixFileSystem_setLastModifiedTime0(JNIEnv *env, jobject this, jobject file, jlong time) argument
428 Java_java_io_UnixFileSystem_setReadOnly0(JNIEnv *env, jobject this, jobject file) argument
446 Java_java_io_UnixFileSystem_getSpace0(JNIEnv *env, jobject this, jobject file, jint t) argument
[all...]
H A Dzip_util.c8 * 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
55 /* USE_MMAP means mmap the CEN & ENDHDR part of the zip file. */
60 #define MAXREFS 0xFFFF /* max number of open zip file references */
82 * respect to file access needs.
86 * Opens the named file for reading, returning a ZFILE.
151 * only on Solaris. Continue reading jar file in this case is the best
152 * thing to do since zip file reading is relatively fast and it is very onerous
162 * Initialize zip file suppor
926 jzfile *file = ZIP_Open_Generic(name, pmsg, O_RDONLY, 0); local
[all...]
/libcore/ojluni/src/test/java/nio/file/
H A DTestUtil.java12 * version 2 for more details (a copy is included in the LICENSE file that
23 // Android-changed: Adapted from jdk/test/java/nio/file/TestUtil.java
25 package test.java.nio.file;
27 import java.nio.file.*;
28 import java.nio.file.attribute.BasicFileAttributes;
52 public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) {
54 Files.delete(file);
56 System.err.format("Unable to delete %s: %s\n", file, x);
70 public FileVisitResult visitFileFailed(Path file, IOException exc) {
71 System.err.format("Unable to visit %s: %s\n", file, ex
77 deleteUnchecked(Path file) argument
[all...]
/libcore/ojluni/src/test/java/nio/file/attribute/
H A DAclEntryEmptySetTest.java12 * version 2 for more details (a copy is included in the LICENSE file that
29 // jdk/test/java/nio/file/attribute/AclEntry/EmptySet.java
31 package test.java.nio.file.attribute;
34 import java.nio.file.attribute.*;
38 * Test for bug 7076310 "(file) AclEntry.Builder setFlags throws
H A DBasicFileAttributeViewCreationTimeTest.java12 * version 2 for more details (a copy is included in the LICENSE file that
26 * @summary Basic test for creationTime attribute on platforms/file systems
31 // jdk/test/java/nio/file/attribute/BasicFileAttributeView/CreationTime.java
33 package test.java.nio.file.attribute;
35 import test.java.nio.file.TestUtil;
37 import java.nio.file.Path;
38 import java.nio.file.Files;
39 import java.nio.file.attribute.*;
51 private static FileTime creationTime(Path file) throws IOException { argument
52 return Files.readAttributes(file, BasicFileAttribute
58 setCreationTime(Path file, FileTime time) argument
[all...]
H A DBasicFileAttributeViewTest.java12 * 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...]

Completed in 211 milliseconds

12345678