Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.ide.net
Class SymlinkCycleDetector

java.lang.Object
  extended by oracle.ide.net.SymlinkCycleDetector

public final class SymlinkCycleDetector
extends java.lang.Object

Detects symlink cycles when descending through a directory tree.

Since:
11.1.2

Method Summary
static SymlinkCycleDetector getInstance(java.net.URL root)
          Get an instance to detect symilnk cycles in a directory tree.
 boolean isSymlinkCycle(java.net.URL dir, URLFileSystem.FileInfo[] infos)
          Determine if a directory is a sylink pointing to a directory higher up in the directory tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SymlinkCycleDetector getInstance(java.net.URL root)
Get an instance to detect symilnk cycles in a directory tree. Each instance should only be used for one iteration through the directory tree.

Parameters:
root - the root of the directory tree
Returns:
the instance

isSymlinkCycle

public boolean isSymlinkCycle(java.net.URL dir,
                              URLFileSystem.FileInfo[] infos)
Determine if a directory is a sylink pointing to a directory higher up in the directory tree. If symlink cycle detection is not implemented on the current platform, this will always return false.

Parameters:
dir - the directory
infos - the contents of the directory
Returns:
true if the directory is a symlink cycle, false otherwise

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

Copyright © 1997, 2011, Oracle. All rights reserved.