Class RemoteFileAccess

  • All Implemented Interfaces:
    Access

    public class RemoteFileAccess
    extends Object
    implements Access
    This class represents access to a remote file.
    • Constructor Detail

      • RemoteFileAccess

        public RemoteFileAccess​(String location)
      • RemoteFileAccess

        public RemoteFileAccess​(String location,
                                String contentType)
        This constructor of RemoteFileAccess taking location and content type as arguments.
        Parameters:
        location - the location of the remote file.
        contentType - the content type of the remote file.
    • Method Detail

      • getDataTypes

        public Map<String,​String> getDataTypes()
        This methods returns the datatypes of the file. This method always returns null, because the datatypes can't be determined from a remote file for the moment.
        Specified by:
        getDataTypes in interface Access
        Returns:
        the datatypes of the file.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getLocation

        public String getLocation()
        The method returns the location of the remote file.
        Returns:
        the location.
      • getContentType

        public String getContentType()
        This method returns the content type of the remote file.
        Returns:
        the content type.