Package be.ugent.rml.access
Class RemoteFileAccess
- java.lang.Object
-
- be.ugent.rml.access.RemoteFileAccess
-
-
Constructor Summary
Constructors Constructor Description RemoteFileAccess(String location)RemoteFileAccess(String location, String contentType)This constructor of RemoteFileAccess taking location and content type as arguments.
-
Method Summary
Modifier and Type Method Description booleanequals(Object o)StringgetContentType()This method returns the content type of the remote file.Map<String,String>getDataTypes()This methods returns the datatypes of the file.InputStreamgetInputStream()This method returns an InputStream for the access.StringgetLocation()The method returns the location of the remote file.inthashCode()
-
-
-
Constructor Detail
-
RemoteFileAccess
public RemoteFileAccess(String location)
-
-
Method Detail
-
getInputStream
public InputStream getInputStream() throws IOException
Description copied from interface:AccessThis method returns an InputStream for the access.- Specified by:
getInputStreamin interfaceAccess- Returns:
- the InputStream corresponding to the access.
- Throws:
IOException
-
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:
getDataTypesin interfaceAccess- Returns:
- the datatypes of the file.
-
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.
-
-