public interface FileSourcedConverter
Modifier and Type | Method and Description |
---|---|
String |
getFileDescription()
Get a one line description of the type of file
|
String |
getFileExtension()
Get the file extension used for this type of file
|
String[] |
getFileExtensions()
Gets all the file extensions used for this type of file
|
boolean |
getUseRelativePath()
Gets whether relative paths are to be used
|
File |
retrieveFile()
Return the current source file/ destination file
|
void |
setFile(File file)
Set the file to load from/ to save in
|
void |
setUseRelativePath(boolean rp)
Set whether to use relative rather than absolute paths
|
String getFileExtension()
String[] getFileExtensions()
String getFileDescription()
void setFile(File file) throws IOException
file
- the file to load fromIOException
- if an error occursFile retrieveFile()
File
valuevoid setUseRelativePath(boolean rp)
rp
- true if relative paths are to be usedboolean getUseRelativePath()
Copyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.