Class AbstractHigherOrderHandle<L extends Location>

    • Constructor Detail

      • AbstractHigherOrderHandle

        public AbstractHigherOrderHandle​(DataHandle<L> handle)
    • Method Detail

      • isReadable

        public boolean isReadable()
        Description copied from interface: DataHandle
        Gets whether reading from this handle is supported.
      • isWritable

        public boolean isWritable()
        Description copied from interface: DataHandle
        Gets whether writing to this handle is supported.
      • length

        public long length()
                    throws IOException
        Description copied from interface: DataHandle
        Returns the length of the data in bytes.
        Returns:
        The length, or -1 if the length is unknown.
        Throws:
        IOException
      • getType

        public Class<L> getType()
        Description copied from interface: Typed
        Gets the type associated with the object.
      • exists

        public boolean exists()
                       throws IOException
        Description copied from interface: DataHandle
        Tests whether this handle's location actually exists at the source.
        Returns:
        True if the location exists; false if not.
        Throws:
        IOException - If something goes wrong with the existence check.
      • cleanup

        protected abstract void cleanup()
                                 throws IOException
        Clean up data structures after a handle has been closed in the close() method.
        Throws:
        IOException