Searched refs:path (Results 26 - 50 of 594) sorted by relevance

1234567891011>>

/openjdk7/jdk/src/share/classes/java/nio/file/
H A DFiles.java64 private static FileSystemProvider provider(Path path) { argument
65 return path.getFileSystem().provider();
85 * @param path
86 * the path to the file to open
103 public static InputStream newInputStream(Path path, OpenOption... options) argument
106 return provider(path).newInputStream(path, options);
130 * Path path = ...
134 * OutputStream out = Files.newOutputStream(path);
137 * out = Files.newOutputStream(path, APPEN
167 newOutputStream(Path path, OpenOption... options) argument
310 newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) argument
356 newByteChannel(Path path, OpenOption... options) argument
581 createFile(Path path, FileAttribute<?>... attrs) argument
1076 delete(Path path) argument
1115 deleteIfExists(Path path) argument
1410 getFileStore(Path path) argument
1453 isSameFile(Path path, Path path2) argument
1480 isHidden(Path path) argument
1563 probeContentType(Path path) argument
1620 getFileAttributeView(Path path, Class<V> type, LinkOption... options) argument
1679 readAttributes(Path path, Class<A> type, LinkOption... options) argument
1748 setAttribute(Path path, String attribute, Object value, LinkOption... options) argument
1809 getAttribute(Path path, String attribute, LinkOption... options) argument
1907 readAttributes(Path path, String attributes, LinkOption... options) argument
1947 getPosixFilePermissions(Path path, LinkOption... options) argument
1982 setPosixFilePermissions(Path path, Set<PosixFilePermission> perms) argument
2019 getOwner(Path path, LinkOption... options) argument
2063 setOwner(Path path, UserPrincipal owner) argument
2092 isSymbolicLink(Path path) argument
2131 isDirectory(Path path, LinkOption... options) argument
2168 isRegularFile(Path path, LinkOption... options) argument
2204 getLastModifiedTime(Path path, LinkOption... options) argument
2243 setLastModifiedTime(Path path, FileTime time) argument
2272 size(Path path) argument
2323 exists(Path path, LinkOption... options) argument
2372 notExists(Path path, LinkOption... options) argument
2394 isAccessible(Path path, AccessMode... modes) argument
2430 isReadable(Path path) argument
2461 isWritable(Path path) argument
2496 isExecutable(Path path) argument
2671 newBufferedReader(Path path, Charset cs) argument
2715 newBufferedWriter(Path path, Charset cs, OpenOption... options) argument
2956 readAllBytes(Path path) argument
3005 readAllLines(Path path, Charset cs) argument
3061 write(Path path, byte[] bytes, OpenOption... options) argument
3119 write(Path path, Iterable<? extends CharSequence> lines, Charset cs, OpenOption... options) argument
[all...]
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
146 newByteChannel(T path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) argument
176 deleteFile(T path) argument
204 deleteDirectory(T path) argument
303 getFileAttributeView(T path, Class<V> type, LinkOption... options) argument
[all...]
/openjdk7/jdk/src/windows/classes/java/io/
H A DWin32FileSystem.java43 new GetPropertyAction("path.separator")).charAt(0);
74 the length of the prefix almost uniquely identifies the type of the path
84 private int normalizePrefix(String path, int len, StringBuffer sb) { argument
86 while ((src < len) && isSlash(path.charAt(src))) src++;
89 && isLetter(c = path.charAt(src))
90 && path.charAt(src + 1) == ':') {
93 specifiers (e.g., "file://c:/path"). As a side effect,
94 "/c:/path" can be used as an alternative to "c:/path". */
101 && isSlash(path
117 normalize(String path, int len, int off) argument
181 normalize(String path) argument
200 prefixLength(String path) argument
266 fromURIPath(String path) argument
317 getDrive(String path) argument
373 canonicalize(String path) argument
431 canonicalize0(String path) argument
452 parentOrNull(String path) argument
512 createFileExclusively(String path) argument
544 access(String path) argument
[all...]
/openjdk7/jdk/src/windows/native/java/io/
H A DWin32FileSystem_md.c53 jfieldID path; member in struct:__anon1061
61 ids.path = (*env)->GetFieldID(env, fileClass,
62 "path", "Ljava/lang/String;");
69 extern int canonicalize(char *path, const char *out, int len);
78 WITH_PLATFORM_STRING(env, pathname, path) {
80 if (canonicalize(JVM_NativePath((char *)path),
86 } END_PLATFORM_STRING(env, path);
117 /* Check whether or not the file name in "path" is a Windows reserved
119 returned result from GetFullPathName. If the file name in the path
123 BOOL isReservedDeviceName(const char* path) { argument
300 removeFileOrDirectory(const char *path) argument
[all...]
H A Ddirent_md.c66 dirp->path = (char *)malloc(strlen(dirname) + 5);
67 if (dirp->path == 0) {
72 strcpy(dirp->path, dirname);
74 fattr = GetFileAttributes(dirp->path);
76 free(dirp->path);
81 free(dirp->path);
87 /* Append "*.*", or possibly "\\*.*", to path */
88 if (dirp->path[1] == ':'
89 && (dirp->path[2] == '\0'
90 || (dirp->path[
[all...]
/openjdk7/langtools/test/tools/javac/
H A DT6407066.java42 List<File> path = new ArrayList<File>();
43 path.add(new File("BadDirectory"));
44 path.add(new File(testSrc));
45 path.add(new File("BadFile.jar"));
47 jfm.setLocation(StandardLocation.SOURCE_PATH, path);
53 if (!path.equals(path2))
54 throw new AssertionError("path not preserved");
/openjdk7/jdk/src/share/classes/sun/reflect/generics/tree/
H A DClassTypeSignature.java36 private List<SimpleClassTypeSignature> path; field in class:ClassTypeSignature
40 path = p;
47 public List<SimpleClassTypeSignature> getPath(){return path;}
/openjdk7/jdk/src/share/classes/javax/swing/tree/
H A DRowMapper.java39 * Returns the rows that the TreePath instances in <code>path</code>
42 * in <code>path</code> is not valid its entry in the array should
45 int[] getRowsForPaths(TreePath[] path); argument
/openjdk7/jdk/src/solaris/native/sun/management/
H A DFileSystemImpl.c47 const char *path = JNU_GetStringPlatformChars(env, str, &isCopy); local
48 if (path != NULL) {
50 if (stat64(path, &sb) == 0) {
56 JNU_ReleaseStringPlatformChars(env, str, path);
/openjdk7/jdk/test/java/io/File/
H A DIsAbsolute.java34 private static void ck(String path, boolean ans) throws Exception { argument
35 File f = new File(path);
38 throw new Exception(path + ": expected " + ans + ", got " + x);
39 System.err.println(path + " ==> " + x);
/openjdk7/jdk/test/javax/swing/JFileChooser/6698013/
H A Dbug6698013.java95 * A Virtual File. Contains a path and a directory flag that
103 private String path; field in class:VirtualFile
107 public VirtualFile(String path, boolean directory) { argument
108 super(path);
109 this.path = path;
114 int index = path.lastIndexOf('/');
120 return new VirtualFile(path.substring(0, index), true);
134 int index = path.lastIndexOf('/');
136 return index == -1 ? path
[all...]
/openjdk7/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/
H A DZipFileSystemProvider.java91 private boolean ensureFile(Path path) { argument
94 Files.readAttributes(path, BasicFileAttributes.class);
107 Path path = uriToPath(uri);
110 if (ensureFile(path)) {
111 realPath = path.toRealPath();
117 zipfs = new ZipFileSystem(this, path, env);
119 String pname = path.toString();
131 public FileSystem newFileSystem(Path path, Map<String, ?> env) argument
134 if (path.getFileSystem() != FileSystems.getDefault()) {
137 ensureFile(path);
177 toZipPath(Path path) argument
186 checkAccess(Path path, AccessMode... modes) argument
198 createDirectory(Path path, FileAttribute<?>... attrs) argument
205 delete(Path path) argument
212 getFileAttributeView(Path path, Class<V> type, LinkOption... options) argument
218 getFileStore(Path path) argument
223 isHidden(Path path) argument
228 isSameFile(Path path, Path other) argument
240 newAsynchronousFileChannel(Path path, Set<? extends OpenOption> options, ExecutorService exec, FileAttribute<?>... attrs) argument
250 newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) argument
259 newDirectoryStream( Path path, Filter<? super Path> filter) argument
266 newFileChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) argument
275 newInputStream(Path path, OpenOption... options) argument
282 newOutputStream(Path path, OpenOption... options) argument
290 readAttributes(Path path, Class<A> type, LinkOption... options) argument
300 readAttributes(Path path, String attribute, LinkOption... options) argument
312 setAttribute(Path path, String attribute, Object value, LinkOption... options) argument
[all...]
H A DZipPath.java62 private final byte[] path; field in class:ZipPath
66 ZipPath(ZipFileSystem zfs, byte[] path) { argument
67 this(zfs, path, false);
70 ZipPath(ZipFileSystem zfs, byte[] path, boolean normalized) argument
74 this.path = path;
76 this.path = normalize(path);
82 return new ZipPath(zfs, new byte[]{path[0]});
93 if (count == 1 && path[
374 checkPath(Path path) argument
437 normalize(byte[] path) argument
455 normalize(byte[] path, int off) argument
[all...]
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/nio/
H A DPathFileObject.java66 private Path path; field in class:PathFileObject
73 final Path path, final Path dir) {
74 return new PathFileObject(fileManager, path) {
77 return toBinaryName(dir.relativize(path));
87 final Path path) {
88 return new PathFileObject(fileManager, path) {
91 return toBinaryName(path);
98 * relative path to a sibling.
101 final Path path, final String relativePath) {
102 return new PathFileObject(fileManager, path) {
72 createDirectoryPathFileObject(JavacPathFileManager fileManager, final Path path, final Path dir) argument
86 createJarPathFileObject(JavacPathFileManager fileManager, final Path path) argument
100 createSiblingPathFileObject(JavacPathFileManager fileManager, final Path path, final String relativePath) argument
114 createSimplePathFileObject(JavacPathFileManager fileManager, final Path path) argument
137 PathFileObject(JavacPathFileManager fileManager, Path path) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/tools/java/
H A DClassPath.java35 * This class is used to represent a class path, which can contain both
47 * The original class path string
52 * List of class path entries
54 private ClassPathEntry[] path; field in class:ClassPath
57 * Build a class path from the specified path string
64 * Build a class path from the specified array of class path
69 * manifest entry will contain a path separator, which would cause
70 * incorrect behavior if the expanded path wer
[all...]
/openjdk7/jdk/src/solaris/native/java/io/
H A DUnixFileSystem_md.c55 jfieldID path; member in struct:__anon952
64 ids.path = (*env)->GetFieldID(env, fileClass,
65 "path", "Ljava/lang/String;");
70 extern int canonicalize(char *path, const char *out, int len);
78 WITH_PLATFORM_STRING(env, pathname, path) {
80 if (canonicalize(JVM_NativePath((char *)path),
90 } END_PLATFORM_STRING(env, path);
99 statMode(const char *path, int *mode) argument
102 if (stat64(path, &sb) == 0) {
116 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...]
/openjdk7/jdk/test/java/nio/file/Path/
H A DUriImportExport.java43 Path path = Paths.get(s);
44 log.println(path);
45 URI uri = path.toUri();
49 if (!result.equals(path.toAbsolutePath())) {
50 log.println("FAIL: Expected " + path + ", got " + result);
60 Path path = Paths.get(s);
61 log.println(path);
62 URI uri = path.toUri();
71 if (!result.equals(path.toAbsolutePath())) {
72 log.println("FAIL: Expected " + path
[all...]
/openjdk7/jdk/src/windows/classes/sun/nio/fs/
H A DWindowsPathParser.java31 * A parser of Windows path strings
43 private final String path; field in class:WindowsPathParser.Result
45 Result(WindowsPathType type, String root, String path) { argument
48 this.path = path;
52 * The path type
66 * The normalized path (includes root)
68 String path() { method in class:WindowsPathParser.Result
69 return path;
74 * Parses the given input as a Windows path
163 normalize(StringBuilder sb, String path, int off) argument
203 nextNonSlash(String path, int off, int end) argument
208 nextSlash(String path, int off, int end) argument
[all...]
H A DWindowsPath.java46 // The maximum path that does not require long path prefix. On Windows
47 // the maximum path is 260 minus 1 (NUL) but for directories it is 260
52 // Maximum extended-length path
58 // path type
62 // normalized path
63 private final String path; field in class:WindowsPath
65 // the path to use in Win32 calls. This differs from path for relative
66 // paths and has a long path prefi
79 WindowsPath(WindowsFileSystem fs, WindowsPathType type, String root, String path) argument
93 parse(WindowsFileSystem fs, String path) argument
101 createFromNormalizedPath(WindowsFileSystem fs, String path, BasicFileAttributes attrs) argument
128 createFromNormalizedPath(WindowsFileSystem fs, String path) argument
143 WindowsPathWithAttributes(WindowsFileSystem fs, WindowsPathType type, String root, String path, BasicFileAttributes attrs) argument
285 addPrefixIfNeeded(String path) argument
371 toWindowsPath(Path path) argument
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/
H A DMenuElement.java43 * <code>path</code> is the path of the receiving element in the menu
53 public void processMouseEvent(MouseEvent event,MenuElement path[],MenuSelectionManager manager); argument
59 public void processKeyEvent(KeyEvent event,MenuElement path[],MenuSelectionManager manager); argument
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/transport/http/
H A DResourceLoader.java44 * Returns the actual location of the resource from the 'path'
47 * @param path
48 * Desiganates an absolute path within an web application, such as:
54 URL getResource(String path) throws MalformedURLException; argument
66 * null if the path is invalid. empty if the path didn't contain
71 Set<String> getResourcePaths(String path); argument
/openjdk7/jdk/src/solaris/classes/sun/nio/fs/
H A DBsdFileSystemProvider.java47 BsdFileStore getFileStore(UnixPath path) throws IOException { argument
48 return new BsdFileStore(path);
H A DUnixFileStoreAttributes.java37 static UnixFileStoreAttributes get(UnixPath path) throws UnixException { argument
39 UnixNativeDispatcher.statvfs(path, attrs);
/openjdk7/jdk/src/macosx/classes/java/util/prefs/
H A DMacOSXPreferences.java47 private final String path; field in class:MacOSXPreferences
102 path = isRoot ? absolutePath() : absolutePath() + "/";
107 newNode = file.addNode(path);
114 String name = path;
144 file.addKeyToNode(path, key, value);
150 return file.getKeyFromNode(path, key);
157 file.removeKeyFromNode(path, key);
169 file.removeNode(path);
176 file.removeChildFromNode(path, child);
184 String[] result = file.getChildrenForNode(path);
[all...]

Completed in 99 milliseconds

1234567891011>>