Package be.ugent.rml.access
Class LocalFileAccess
- java.lang.Object
-
- be.ugent.rml.access.LocalFileAccess
-
-
Constructor Summary
Constructors Constructor Description LocalFileAccess(String path, String basePath)This constructor takes the path and the base path of a file.
-
Method Summary
Modifier and Type Method Description booleanequals(Object o)StringgetBasePath()This method returns the base path of the access.Map<String,String>getDataTypes()This methods returns the datatypes of the file.InputStreamgetInputStream()This method returns the InputStream of the local file.StringgetPath()This method returns the path of the access.inthashCode()StringtoString()
-
-
-
Method Detail
-
getInputStream
public InputStream getInputStream() throws IOException
This method returns the InputStream of the local file.- Specified by:
getInputStreamin interfaceAccess- Returns:
- an InputStream.
- 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 local file for the moment.- Specified by:
getDataTypesin interfaceAccess- Returns:
- the datatypes of the file.
-
getPath
public String getPath()
This method returns the path of the access.- Returns:
- the relative path.
-
getBasePath
public String getBasePath()
This method returns the base path of the access.- Returns:
- the base path.
-
-