Package io.jhdf.api

Interface Link

  • All Superinterfaces:
    Node
    All Known Implementing Classes:
    AbstractLink, ExternalLink, SoftLink

    public interface Link
    extends Node
    HDF5 links interface. Used for soft (symbolic) links and external links
    • Method Detail

      • getTarget

        Node getTarget()
        Resolves the link and returns the Node the link points to. If isBrokenLink() returns true calling this method will throw.
        Returns:
        the Node this link points to
        Throws:
        HdfBrokenLinkException - if the link is broken
      • getTargetPath

        java.lang.String getTargetPath()
        Gets the path this link points to, obtaining it will not require the link to be resolved.
        Returns:
        the path this link points to
      • isBrokenLink

        boolean isBrokenLink()
        Checks if the link is valid i.e can be resolved.
        Returns:
        true if the link is broken (i.e. cannot be resolved)