Lines Matching refs:path

232      * Returns the ZipFileIndexEntry for a path, if there is one.
234 synchronized Entry getZipIndexEntry(RelativePath path) {
237 DirectoryEntry de = directories.get(path.dirname());
238 String lookFor = path.basename();
249 public synchronized com.sun.tools.javac.util.List<String> getFiles(RelativeDirectory path) {
253 DirectoryEntry de = directories.get(path);
266 public synchronized List<String> getDirectories(RelativeDirectory path) {
270 DirectoryEntry de = directories.get(path);
299 * Tests if a specific path exists in the zip. This method will return true
302 * @param path A path within the zip.
303 * @return True if the path is a file or dir, false otherwise.
305 public synchronized boolean contains(RelativePath path) {
308 return getZipIndexEntry(path) != null;
315 public synchronized boolean isDirectory(RelativePath path) throws IOException {
317 if (path.getPath().length() == 0) {
323 return directories.get(path) != null;
326 public synchronized long getLastModified(RelativeFile path) throws IOException {
327 Entry entry = getZipIndexEntry(path);
333 public synchronized int length(RelativeFile path) throws IOException {
334 Entry entry = getZipIndexEntry(path);
351 public synchronized byte[] read(RelativeFile path) throws IOException {
352 Entry entry = getZipIndexEntry(path);
354 throw new FileNotFoundException("Path not found in ZIP: " + path.path);
365 public synchronized int read(RelativeFile path, byte[] buffer) throws IOException {
366 Entry entry = getZipIndexEntry(path);
653 if (tempDirectory.path.indexOf("/") == tempDirectory.path.length() - 1)
1050 private RelativeDirectory getRelativeDirectory(String path) {
1052 SoftReference<RelativeDirectory> ref = relativeDirectoryCache.get(path);
1058 rd = new RelativeDirectory(path);
1059 relativeDirectoryCache.put(path, new SoftReference<RelativeDirectory>(rd));
1080 public Entry(RelativePath path) {
1081 this(path.dirname(), path.basename());