/** All objects that are beyond this one. * @return enumeration of FileObject */ private Enumeration<FileObject> delegates() { return getMultiFileSystem().delegates(getPath()); }
/** * auxiliary method that returns true if mask is needed and deletes all delegates * on writable layers if deleteDelegates is true. * @param lock * @param deleteDelegates if true all delegates on writable layers will be deleted * @throws IOException is thrown if lock is not valid. * @return true if mask is necessary*/ private boolean needsMask(FileLock lock, boolean deleteDelegates) throws IOException { MfLock lck = testLock(lock); Enumeration<FileObject> e = getMultiFileSystem().delegates(getPath()); boolean needsMask = false; while (e.hasMoreElements()) { FileObject fo = e.nextElement(); FileLock lockForFo = lck.findLock(fo); if (lockForFo == null) { // we will need to create mask needsMask = true; } else { if (deleteDelegates) { fo.delete(lockForFo); } } } return needsMask; }
if (getMultiFileSystem().delegates(oldFullName).hasMoreElements()) {
/** All objects that are beyond this one. * @return enumeration of FileObject */ private Enumeration delegates () { return getMultiFileSystem ().delegates (getPath ()); }
/** All objects that are beyond this one. * @return enumeration of FileObject */ private Enumeration delegates () { return getMultiFileSystem ().delegates (getPath ()); }
/** * auxiliary method that returns true if mask is needed and deletes all delegates * on writable layers if deleteDelegates is true. * @param lock * @param deleteDelegates if true all delegates on writable layers will be deleted * @throws IOException is thrown if lock is not valid. * @return true if mask is necessary*/ private boolean needsMask(FileLock lock, boolean deleteDelegates) throws IOException{ MfLock lck = testLock(lock); Enumeration e = getMultiFileSystem().delegates(getPath()); boolean needsMask = false; while (e.hasMoreElements()) { FileObject fo = (FileObject) e.nextElement(); FileLock lockForFo = lck.findLock(fo); if (lockForFo == null) { // we will need to create mask needsMask = true; } else { if (deleteDelegates) fo.delete(lockForFo); } } return needsMask; }
/** * auxiliary method that returns true if mask is needed and deletes all delegates * on writable layers if deleteDelegates is true. * @param lock * @param deleteDelegates if true all delegates on writable layers will be deleted * @throws IOException is thrown if lock is not valid. * @return true if mask is necessary*/ private boolean needsMask(FileLock lock, boolean deleteDelegates) throws IOException{ MfLock lck = testLock(lock); Enumeration e = getMultiFileSystem().delegates(getPath()); boolean needsMask = false; while (e.hasMoreElements()) { FileObject fo = (FileObject) e.nextElement(); FileLock lockForFo = lck.findLock(fo); if (lockForFo == null) { // we will need to create mask needsMask = true; } else { if (deleteDelegates) fo.delete(lockForFo); } } return needsMask; }
if (getMultiFileSystem ().delegates (oldFullName).hasMoreElements ()) {
if (getMultiFileSystem ().delegates (oldFullName).hasMoreElements ()) {