/openjdk7/jdk/src/share/classes/sun/net/httpserver/ |
H A D | ContextList.java | 47 /* initially contexts are located only by protocol:path. 50 synchronized HttpContextImpl findContext (String protocol, String path) { argument 51 return findContext (protocol, path, false); 54 synchronized HttpContextImpl findContext (String protocol, String path, boolean exact) { argument 63 if (exact && !cpath.equals (path)) { 65 } else if (!exact && !path.startsWith(cpath)) { 76 public synchronized void remove (String protocol, String path) argument 79 HttpContextImpl ctx = findContext (protocol, path, true);
|
H A D | HttpContextImpl.java | 34 * HttpContext represents a mapping between a protocol (http or https) together with a root URI path 36 * for the protocol/path on the associated HttpServer. 43 private String path; field in class:HttpContextImpl 58 HttpContextImpl (String protocol, String path, HttpHandler cb, ServerImpl server) { argument 59 if (path == null || protocol == null || path.length() < 1 || path.charAt(0) != '/') { 60 throw new IllegalArgumentException ("Illegal value for path or protocol"); 63 this.path = path; [all...] |
H A D | HttpServerImpl.java | 73 public HttpContextImpl createContext (String path, HttpHandler handler) { argument 74 return server.createContext (path, handler); 77 public HttpContextImpl createContext (String path) { argument 78 return server.createContext (path); 81 public void removeContext (String path) throws IllegalArgumentException { argument 82 server.removeContext (path);
|
H A D | HttpsServerImpl.java | 81 public HttpContextImpl createContext (String path, HttpHandler handler) { argument 82 return server.createContext (path, handler); 85 public HttpContextImpl createContext (String path) { argument 86 return server.createContext (path); 89 public void removeContext (String path) throws IllegalArgumentException { argument 90 server.removeContext (path);
|
/openjdk7/jdk/src/share/classes/javax/swing/event/ |
H A D | MenuKeyEvent.java | 51 private MenuElement path[]; field in class:MenuKeyEvent 67 * @param p an array of MenuElement objects specifying a path 75 path = p; 80 * Returns the path to the menu item referenced by this event. 82 * @return an array of MenuElement objects representing the path value 85 return path;
|
/openjdk7/jdk/src/solaris/instrument/ |
H A D | FileSystemSupport_md.c | 46 char* basePath(const char* path) { argument 47 char* last = strrchr(path, slash); 49 return (char*)path; 51 int len = last - path; 54 memcpy(str, path, len); 61 int isAbsolute(const char* path) { argument 62 return (path[0] == slash) ? 1 : 0; 148 char* fromURIPath(const char* path) { argument 149 int len = strlen(path); 150 if (len > 1 && path[le [all...] |
/openjdk7/jdk/test/java/awt/appletviewer/IOExceptionIfEncodedURLTest/ |
H A D | IOExceptionIfEncodedURLTest.java | 27 @summary REGRESSION: AppletViewer throws IOException when path is encoded URL 55 String path = ParseUtil.fileToEncodedURL(new File(System.getProperty("user.dir"))).getPath(); 57 System.err.println("url="+url+" -> path="+path+",filename="+filename); 59 if (!path.endsWith("/") && !filename.startsWith("/")) {
|
/openjdk7/jdk/test/sun/reflect/CallerSensitive/ |
H A D | ClassFileReader.java | 37 * ClassFileReader reads ClassFile(s) of a given path that can be 42 * Returns a ClassFileReader instance of a given path. 44 public static ClassFileReader newInstance(File path) throws IOException { argument 45 if (!path.exists()) { 46 throw new FileNotFoundException(path.getAbsolutePath()); 49 if (path.isDirectory()) { 50 return new DirectoryReader(path.toPath()); 51 } else if (path.getName().endsWith(".jar")) { 52 return new JarFileReader(path.toPath()); 54 return new ClassFileReader(path 61 newInstance(Path path, JarFile jf) argument 65 protected final Path path; field in class:ClassFileReader 67 ClassFileReader(Path path) argument 153 DirectoryReader(Path path) argument 233 JarFileReader(Path path) argument 236 JarFileReader(Path path, JarFile jf) argument [all...] |
/openjdk7/jdk/src/share/classes/java/net/ |
H A D | URLStreamHandler.java | 132 String path = u.getPath(); 229 // If the authority is defined then the path is defined by the 232 path = ""; 239 // Parse the file path if any 242 path = spec.substring(start, limit); 243 } else if (path != null && path.length() > 0) { 245 int ind = path.lastIndexOf('/'); 249 path = path 530 setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) argument [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/tree/ |
H A D | TreeSelectionModel.java | 49 * path (<code>SINGLE_TREE_SELECTION</code>) a number of 76 * should result in only one path being selected: 82 * The lead TreePath is the last path that was added (or set). The lead 91 /** Selection can only contain one path at a time. */ 124 * Sets the selection to path. If this represents a change, then 125 * the TreeSelectionListeners are notified. If <code>path</code> is 128 * @param path new path to select 130 void setSelectionPath(TreePath path); argument 133 * Sets the selection to path 148 addSelectionPath(TreePath path) argument 167 removeSelectionPath(TreePath path) argument 202 isPathSelected(TreePath path) argument [all...] |
/openjdk7/jdk/src/windows/classes/sun/misc/ |
H A D | FileURLMapper.java | 49 * @returns the platform specific path corresponding to the URL, and in particular 65 String path = url.getFile().replace('/', '\\'); 66 file = ParseUtil.decode(path); 71 String path = getPath(); 72 File f = new File (path);
|
/openjdk7/jdk/test/java/net/URL/ |
H A D | B4148751.java | 39 final static String path = "/some file.html"; field in class:B4148751 67 if (!uri.getPath().equals (path)) { 69 path); 74 URI uri1 = new URI (scheme, auth, path);
|
/openjdk7/jdk/src/solaris/classes/sun/nio/fs/ |
H A D | MacOSXNativeDispatcher.java | 40 static native char[] normalizepath(char[] path, int form); argument
|
H A D | UnixNativeDispatcher.java | 38 // 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 D | UnixPath.java | 53 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...] |
/openjdk7/jdk/test/java/net/URLClassLoader/closetest/ |
H A D | Common.java | 58 static void rm_minus_rf (File path) { argument 59 if (!path.exists()) { 62 if (path.isFile()) { 63 if (!path.delete()) { 64 throw new RuntimeException ("Could not delete " + path); 66 } else if (path.isDirectory ()) { 67 String[] names = path.list(); 68 File[] files = path.listFiles(); 70 rm_minus_rf (new File(path, names[i])); 72 if (!path [all...] |
/openjdk7/langtools/src/share/classes/com/sun/source/util/ |
H A D | TreePath.java | 32 * A path of tree nodes, typically used to represent the sequence of ancestor 40 * Gets a tree path for a tree node within a compilation unit. 48 * Gets a tree path for a tree node within a subtree identified by a TreePath object. 51 public static TreePath getPath(TreePath path, Tree target) { argument 52 path.getClass(); 57 TreePath path; 58 Result(TreePath path) { 59 this.path = path; 71 new PathFinder().scan(path, targe [all...] |
/openjdk7/jdk/src/share/classes/com/sun/tools/example/debug/gui/ |
H A D | SearchPath.java | 71 File path = new File(element, relativeFileName); 72 if (path.exists()) { 73 return path; 82 // If a file appears at the same relative path 89 File path = new File(element, relativeDirName); 90 if (path.exists()) { 91 String[] childArray = path.list(filter);
|
/openjdk7/jdk/src/share/demo/nio/zipfs/ |
H A D | Demo.java | 91 zzmove, // <java Demo zzmove zfsrc zfdst path> 92 // move entry path/dir from zfsrc to zfdst 94 zzcopy, // <java Demo zzcopy zfsrc zfdst path> 95 // copy path from zipfile zfsrc to zipfile 98 attrs, // <java Demo attrs zipfile path> 99 // printout the attributes of entry path 101 attrsspace, // <java Demo attrsspace zipfile path> 102 // printout the storespace attrs of entry path 104 setmtime, // <java Demo setmtime zipfile "MM/dd/yy-HH:mm:ss" path...> 105 // set the lastModifiedTime of entry path 385 walk(Path path) argument 426 update(FileSystem fs, String path) argument 442 extract(FileSystem fs, String path) argument 461 z2zcopy(FileSystem src, FileSystem dst, String path) argument 486 z2zmove(FileSystem src, FileSystem dst, String path) argument 543 mkdirs(Path path) argument 557 rmdirs(Path path) argument 564 list(Path path, boolean verbose ) argument [all...] |
/openjdk7/jdk/src/share/classes/java/io/ |
H A D | File.java | 139 * Path} that uses the abstract path represented by a {@code File} object to 165 private String path; field in class:File 168 * Enum type that indicates the status of a file path. 173 * The flag indicating whether the file path is invalid. 178 * Check if the file has an invalid path. Currently, the inspection of 179 * a file path is very limited, and it only covers Nul character check. 180 * Returning true means the path is definitely invalid/garbage. But 181 * returning false does not guarantee that the path is valid. 183 * @return true if the file path is invalid. 187 status = (this.path 647 slashify(String path, boolean isDirectory) argument [all...] |
/openjdk7/jdk/src/solaris/native/com/sun/media/sound/ |
H A D | PLATFORM_API_SolarisOS_Utils.c | 55 /* returns TRUE if the path exists at all */ 56 int addAudioDevice(char* path, AudioDevicePath* adPath, int* count) { argument 64 if (stat(path, &statBuf) == 0) { 78 strncpy(adPath[*count].path, path, MAX_NAME_LENGTH); 79 adPath[*count].path[MAX_NAME_LENGTH] = 0; 81 TRACE1("Added audio device %s\n", path); 132 ret = getAudioDeviceDescription(globalADPaths[index].path, adDesc, getNames); 137 int getAudioDeviceDescription(char* path, AudioDeviceDescription* adDesc, int getNames) { argument 144 strncpy(adDesc->path, pat [all...] |
/openjdk7/jdk/src/solaris/classes/sun/tools/attach/ |
H A D | BsdVirtualMachine.java | 50 String path; field in class:BsdVirtualMachine 71 path = findSocketFile(pid); 72 if (path == null) { 86 path = findSocketFile(pid); 88 } while (i <= retries && path == null); 89 if (path == null) { 101 checkPermissions(path); 108 connect(s, path); 119 if (this.path != null) { 120 this.path 283 checkPermissions(String path) argument 287 connect(int fd, String path) argument 295 createAttachFile(String path) argument [all...] |
/openjdk7/jdk/src/share/classes/sun/rmi/rmic/ |
H A D | BatchEnvironment.java | 70 * Create a ClassPath object for rmic from a class path string. 79 * options for class path, boot class path, and extension directories. 96 Path path = new Path(); 99 sysClassPathString = System.getProperty("sun.boot.class.path"); 102 path.addFiles(sysClassPathString); 107 * everywhere except in the boot class path. 109 path.expandJarClassPaths(true); 115 path.addDirectories(extDirsString); 119 * In the application class path, a 142 BatchEnvironment(OutputStream out, ClassPath path, Main main) argument 237 private final String path; field in class:BatchEnvironment.Path.PathIterator 240 PathIterator(String path, String emptyPathDefault) argument 244 PathIterator(String path) argument [all...] |
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/utilities/ |
H A D | LivenessAnalysis.java | 60 // Returns true if a new path was completed, otherwise false 98 LivenessPath path = new LivenessPath(); 99 path.push(new LivenessPathElement(target, null)); 100 list.add(path); 106 LivenessPath path = null; 111 path = tmp; 117 if (path == null) { 121 // Try to complete this path 123 // Remove the path from the list of reported ones in 125 list.remove(path); [all...] |
/openjdk7/jdk/src/windows/classes/sun/net/www/protocol/file/ |
H A D | Handler.java | 78 String path; 82 path = ParseUtil.decode(file); 83 path = path.replace('/', '\\'); 84 path = path.replace('|', ':'); 89 return createFileURLConnection(url, new File(path)); 93 * attempt to treat this as a UNC path. See 4180841 95 path = "\\\\" + host + path; [all...] |