Searched refs:path (Results 1 - 25 of 120) sorted by relevance

12345

/libcore/ojluni/src/main/java/java/nio/file/
H A DPathMatcher.java40 * Tells if given path matches this matcher's pattern.
42 * @param path
43 * the path to match
45 * @return {@code true} if, and only if, the path matches this
48 boolean matches(Path path); argument
H A DSecureDirectoryStream.java39 * interface specify a relative path. All access to the file is relative
52 * performed using the path obtained by resolving the given relative path
53 * against the <i>original path</i> of the directory (irrespective of if the
63 * Opens the directory identified by the given path, returning a {@code
68 * the {@code path} parameter is an {@link Path#isAbsolute absolute} path.
69 * When the parameter is a relative path then the directory to open is
78 * @param path
79 * the path t
97 newDirectoryStream(T path, LinkOption... options) argument
148 newByteChannel(T path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) argument
178 deleteFile(T path) argument
206 deleteDirectory(T path) argument
309 getFileAttributeView(T path, Class<V> type, LinkOption... options) argument
[all...]
H A DFiles.java96 private static FileSystemProvider provider(Path path) { argument
97 return path.getFileSystem().provider();
131 * @param path
132 * the path to the file to open
149 public static InputStream newInputStream(Path path, OpenOption... options) argument
152 return provider(path).newInputStream(path, options);
176 * Path path = ...
180 * OutputStream out = Files.newOutputStream(path);
183 * out = Files.newOutputStream(path, APPEN
213 newOutputStream(Path path, OpenOption... options) argument
356 newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) argument
402 newByteChannel(Path path, OpenOption... options) argument
627 createFile(Path path, FileAttribute<?>... attrs) argument
1125 delete(Path path) argument
1164 deleteIfExists(Path path) argument
1460 getFileStore(Path path) argument
1503 isSameFile(Path path, Path path2) argument
1530 isHidden(Path path) argument
1613 probeContentType(Path path) argument
1671 getFileAttributeView(Path path, Class<V> type, LinkOption... options) argument
1732 readAttributes(Path path, Class<A> type, LinkOption... options) argument
1801 setAttribute(Path path, String attribute, Object value, LinkOption... options) argument
1862 getAttribute(Path path, String attribute, LinkOption... options) argument
1960 readAttributes(Path path, String attributes, LinkOption... options) argument
2000 getPosixFilePermissions(Path path, LinkOption... options) argument
2037 setPosixFilePermissions(Path path, Set<PosixFilePermission> perms) argument
2074 getOwner(Path path, LinkOption... options) argument
2120 setOwner(Path path, UserPrincipal owner) argument
2151 isSymbolicLink(Path path) argument
2190 isDirectory(Path path, LinkOption... options) argument
2227 isRegularFile(Path path, LinkOption... options) argument
2263 getLastModifiedTime(Path path, LinkOption... options) argument
2302 setLastModifiedTime(Path path, FileTime time) argument
2331 size(Path path) argument
2382 exists(Path path, LinkOption... options) argument
2431 notExists(Path path, LinkOption... options) argument
2453 isAccessible(Path path, AccessMode... modes) argument
2489 isReadable(Path path) argument
2520 isWritable(Path path) argument
2555 isExecutable(Path path) argument
2780 newBufferedReader(Path path, Charset cs) argument
2815 newBufferedReader(Path path) argument
2855 newBufferedWriter(Path path, Charset cs, OpenOption... options) argument
2895 newBufferedWriter(Path path, OpenOption... options) argument
3151 readAllBytes(Path path) argument
3201 readAllLines(Path path, Charset cs) argument
3241 readAllLines(Path path) argument
3286 write(Path path, byte[] bytes, OpenOption... options) argument
3344 write(Path path, Iterable<? extends CharSequence> lines, Charset cs, OpenOption... options) argument
3392 write(Path path, Iterable<? extends CharSequence> lines, OpenOption... options) argument
3743 lines(Path path, Charset cs) argument
3784 lines(Path path) argument
[all...]
/libcore/ojluni/src/main/java/java/io/
H A DFileNotFoundException.java76 private FileNotFoundException(String path, String reason) { argument
77 super(path + ((reason == null)
H A DFilePermission.java36 public FilePermission(String path, String actions) { super(""); } argument
H A DFile.java139 * Path} that uses the abstract path represented by a {@code File} object to
170 private final String path; field in class:File
173 * Enum type that indicates the status of a file path.
178 * The flag indicating whether the file path is invalid.
183 * Check if the file has an invalid path. Currently, the inspection of
184 * a file path is very limited, and it only covers Nul character check.
185 * Returning true means the path is definitely invalid/garbage. But
186 * returning false does not guarantee that the path is valid.
188 * @return true if the file path is invalid.
192 status = (this.path
635 slashify(String path, boolean isDirectory) argument
[all...]
H A DUnixFileSystem.java44 new GetPropertyAction("path.separator")).charAt(0);
112 public String fromURIPath(String path) { argument
113 String p = path;
134 // The first cache handles repeated canonicalizations of the same path
138 // prefix cache is conservative and is not used for complex path names.
145 public String canonicalize(String path) throws IOException { argument
147 return canonicalize0(path);
149 String res = cache.get(path);
157 dir = parentOrNull(path);
161 // Hit only in prefix cache; full path i
191 canonicalize0(String path) argument
199 parentOrNull(String path) argument
279 createFileExclusively(String path) argument
283 createFileExclusively0(String path) argument
[all...]
/libcore/ojluni/src/main/java/sun/misc/
H A DFileURLMapper.java46 String path; field in class:FileURLMapper
53 * @returns the platform specific path corresponding to the URL
58 if (path != null) {
59 return path;
63 path = url.getFile();
64 path = ParseUtil.decode (path);
66 return path;
/libcore/ojluni/src/main/native/
H A DUnixFileSystem_md.c57 jfieldID path; member in struct:__anon10
69 ids.path = (*env)->GetFieldID(env, fileClass,
70 "path", "Ljava/lang/String;");
75 extern int canonicalize(char *path, const char *out, int len);
83 WITH_PLATFORM_STRING(env, pathname, path) {
85 if (canonicalize((char *)path,
95 } END_PLATFORM_STRING(env, path);
104 statMode(const char *path, int *mode) argument
107 if (stat64(path, &sb) == 0) {
122 WITH_FIELD_PLATFORM_STRING(env, file, ids.path, pat
[all...]
H A Dcanonicalize_md.c121 /* Collapse "." and ".." names in the given path wherever possible.
128 collapse(char *path) argument
130 char *names = (path[0] == '/') ? path + 1 : path; /* Preserve first '/' */
184 /* Convert a pathname to canonical form. The input path is assumed to contain
202 /* First try realpath() on the entire path */
209 /* Something's bogus in the original path, so remove names from the end
212 char path[PATH_MAX + 1]; local
214 strncpy(path, origina
[all...]
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DUnixFileStoreAttributes.java37 static UnixFileStoreAttributes get(UnixPath path) throws UnixException { argument
39 UnixNativeDispatcher.statvfs(path, attrs);
H A DUnixNativeDispatcher.java38 // returns a NativeBuffer containing the given path
39 private static NativeBuffer copyToNativeBuffer(UnixPath path) { argument
40 byte[] cstr = path.getByteArrayForSysCalls();
46 // buffer already contains the path
47 if (buffer.owner() == path)
51 buffer.setOwner(path);
66 * int open(const char* path, int oflag, mode_t mode)
68 static int open(UnixPath path, int flags, int mode) throws UnixException { argument
69 NativeBuffer buffer = copyToNativeBuffer(path);
80 * int openat(int dfd, const char* path, in
82 openat(int dfd, byte[] path, int flags, int mode) argument
138 unlink(UnixPath path) argument
151 unlinkat(int dfd, byte[] path, int flag) argument
165 mknod(UnixPath path, int mode, long dev) argument
211 mkdir(UnixPath path, int mode) argument
224 rmdir(UnixPath path) argument
239 readlink(UnixPath path) argument
254 realpath(UnixPath path) argument
283 stat(UnixPath path, UnixFileAttributes attrs) argument
297 lstat(UnixPath path, UnixFileAttributes attrs) argument
316 fstatat(int dfd, byte[] path, int flag, UnixFileAttributes attrs) argument
332 chown(UnixPath path, int uid, int gid) argument
346 lchown(UnixPath path, int uid, int gid) argument
365 chmod(UnixPath path, int mode) argument
384 utimes(UnixPath path, long times0, long times1) argument
405 opendir(UnixPath path) argument
446 access(UnixPath path, int amode) argument
503 statvfs(UnixPath path, UnixFileStoreAttributes attrs) argument
519 pathconf(UnixPath path, int name) argument
[all...]
H A DUnixPath.java53 private final byte[] path; field in class:UnixPath
61 // array of offsets of elements in path (created lazily)
64 UnixPath(UnixFileSystem fs, byte[] path) { argument
66 this.path = path;
118 // encodes the given path-string into a sequence of bytes
161 return path;
164 // use this path when making system/library calls
169 return resolve(getFileSystem().defaultDirectory(), path);
172 return path;
[all...]
H A DUnixChannelFactory.java103 static FileChannel newFileChannel(int fd, String path, boolean reading, boolean writing) { argument
106 return FileChannelImpl.open(fdObj, path, reading, writing, null);
110 * Constructs a file channel by opening a file using a dfd/path pair
113 UnixPath path,
136 FileDescriptor fdObj = open(dfd, path, pathForPermissionCheck, flags, mode);
137 return FileChannelImpl.open(fdObj, path.toString(), flags.read, flags.write, flags.append, null);
143 static FileChannel newFileChannel(UnixPath path, argument
148 return newFileChannel(-1, path, null, options, mode);
154 static AsynchronousFileChannel newAsynchronousFileChannel(UnixPath path, argument
172 FileDescriptor fdObj = open(-1, path, nul
112 newFileChannel(int dfd, UnixPath path, String pathForPermissionCheck, Set<? extends OpenOption> options, int mode) argument
180 open(int dfd, UnixPath path, String pathForPermissionCheck, Flags flags, int mode) argument
[all...]
H A DLinuxFileStore.java60 UnixPath path = null;
63 path = new UnixPath(fs, rp);
69 UnixPath parent = path.getParent();
79 path = parent;
85 byte[] dir = path.asByteArray();
96 private boolean isExtendedAttributesEnabled(UnixPath path) { argument
98 int fd = path.openForAttributeAccess(false);
/libcore/ojluni/src/main/java/java/net/
H A DURLStreamHandler.java129 String path = u.getPath();
252 // If the authority is defined then the path is defined by the
255 // path = "";
256 path = null;
267 // Parse the file path if any
270 path = spec.substring(start, limit);
271 } else if (path != null && path.length() > 0) {
273 int ind = path.lastIndexOf('/');
277 path
543 setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) argument
[all...]
/libcore/luni/src/test/java/tests/security/
H A DCertPathBuilderTest.java40 public abstract void validateCertPath(CertPath path); argument
48 CertPath path = builderResult.getCertPath();
50 assertNotNull("built path is null", path);
52 validateCertPath(path);
/libcore/tools/upstream/
H A Doj_upstream_comparison.py58 list_file = os.path.join(build_top, "libcore", "openjdk_java_files.mk")
65 path = match.group(1)
67 path = os.path.normpath(path)
68 result.append(path)
72 """The full path of the file at the given rel_path in ojluni"""
73 return os.path.join(build_top, "libcore", "ojluni", "src", "main", "java", rel_path)
76 """The full path of the file at the given rel_path in the given upstream"""
82 source_dir = os.path
[all...]
/libcore/luni/src/main/java/javax/xml/parsers/
H A DFilePathToURI.java52 // To escape a file path to a URI, by using %HH to represent
55 public static String filepath2URI(String path){ argument
56 // return null if path is null.
57 if (path == null)
61 path = path.replace(separator, '/');
63 int len = path.length(), ch;
67 if (len >= 2 && path.charAt(1) == ':') {
68 ch = Character.toUpperCase(path.charAt(0));
74 // for each character in the path
[all...]
/libcore/luni/src/main/java/javax/xml/transform/stream/
H A DFilePathToURI.java52 // To escape a file path to a URI, by using %HH to represent
55 public static String filepath2URI(String path){ argument
56 // return null if path is null.
57 if (path == null)
61 path = path.replace(separator, '/');
63 int len = path.length(), ch;
67 if (len >= 2 && path.charAt(1) == ':') {
68 ch = Character.toUpperCase(path.charAt(0));
74 // for each character in the path
[all...]
/libcore/ojluni/src/main/java/java/nio/file/spi/
H A DFileSystemProvider.java239 * path component is {@code "/"} and the authority, query and fragment components
278 * given URI has a non-empty path component, and undefined query, and
318 * @param path
319 * The path to the file
339 public FileSystem newFileSystem(Path path, Map<String,?> env) argument
355 * @param path
356 * the path to the file to open
373 public InputStream newInputStream(Path path, OpenOption... options) argument
384 return Channels.newInputStream(Files.newByteChannel(path, options));
397 * @param path
418 newOutputStream(Path path, OpenOption... options) argument
471 newFileChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) argument
519 newAsynchronousFileChannel(Path path, Set<? extends OpenOption> options, ExecutorService executor, FileAttribute<?>... attrs) argument
565 newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) argument
709 delete(Path path) argument
737 deleteIfExists(Path path) argument
865 isSameFile(Path path, Path path2) argument
887 isHidden(Path path) argument
908 getFileStore(Path path) argument
983 checkAccess(Path path, AccessMode... modes) argument
1004 getFileAttributeView(Path path, Class<V> type, LinkOption... options) argument
1033 readAttributes(Path path, Class<A> type, LinkOption... options) argument
1064 readAttributes(Path path, String attributes, LinkOption... options) argument
1100 setAttribute(Path path, String attribute, Object value, LinkOption... options) argument
[all...]
/libcore/luni/src/test/filesystems/src/mypackage/
H A DMockFileSystemProvider.java50 public FileSystem newFileSystem(Path path, Map<String, ?> env) throws IOException { argument
51 return new MockFileSystem(path, env);
65 public SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, argument
82 public void delete(Path path) throws IOException { argument
97 public boolean isSameFile(Path path, Path path2) throws IOException { argument
102 public boolean isHidden(Path path) throws IOException { argument
107 public FileStore getFileStore(Path path) throws IOException { argument
112 public void checkAccess(Path path, AccessMode... modes) throws IOException { argument
117 public <V extends FileAttributeView> V getFileAttributeView(Path path, Class<V> type, argument
123 public <A extends BasicFileAttributes> A readAttributes(Path path, Clas argument
129 readAttributes(Path path, String attributes, LinkOption... options) argument
135 setAttribute(Path path, String attribute, Object value, LinkOption... options) argument
[all...]
/libcore/luni/src/main/java/android/system/
H A DUnixSocketAddress.java61 // Abstract sockets have a path that starts with (byte) 0.
62 byte[] path = new byte[nameBytes.length + 1];
63 System.arraycopy(nameBytes, 0, path, 1, nameBytes.length);
64 return new UnixSocketAddress(path);
72 // File system sockets have a path that ends with (byte) 0.
73 byte[] path = new byte[pathNameBytes.length + 1];
74 System.arraycopy(pathNameBytes, 0, path, 0, pathNameBytes.length);
75 return new UnixSocketAddress(path);
/libcore/dalvik/src/main/java/dalvik/system/
H A DDexPathList.java39 * One of the lists is a dex/resource path &mdash; typically referred
40 * to as a "class path" &mdash; list, and the other names directories
41 * containing native code libraries. Class path entries may be any of:
58 * List of dex/resource (class path) elements.
64 /** List of native library path elements. */
101 splitPaths(System.getProperty("java.library.path"), true);
119 * @param dexPath list of dex/resource path elements, separated by
121 * @param librarySearchPath list of native library directory path elements,
163 // 1. This class loader's library path for application libraries (librarySearchPath):
166 // 2. The VM's library path fro
250 splitDexPath(String path) argument
385 optimizedPathFor(File path, File optimizedDirectory) argument
564 private final File path; field in class:DexPathList.Element
585 Element(File path) argument
712 private final File path; field in class:DexPathList.NativeLibraryElement
[all...]
/libcore/ojluni/src/main/java/sun/net/www/protocol/ftp/
H A DFtpURLConnection.java333 * Decodes the path as per the RFC-1738 specifications.
335 private void decodePath(String path) { argument
336 int i = path.indexOf(";type=");
338 String s1 = path.substring(i + 6, path.length());
348 path = path.substring(0, i);
350 if (path != null && path.length() > 1 &&
351 path
384 cd(String path) argument
[all...]

Completed in 7359 milliseconds

12345