|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileSourcedConverter
Interface to a loader/saver that loads/saves from a file source.
Method Summary | |
---|---|
java.lang.String |
getFileDescription()
Get a one line description of the type of file |
java.lang.String |
getFileExtension()
Get the file extension used for this type of file |
java.lang.String[] |
getFileExtensions()
Gets all the file extensions used for this type of file |
boolean |
getUseRelativePath()
Gets whether relative paths are to be used |
java.io.File |
retrieveFile()
Return the current source file/ destination file |
void |
setFile(java.io.File file)
Set the file to load from/ to save in |
void |
setUseRelativePath(boolean rp)
Set whether to use relative rather than absolute paths |
Method Detail |
---|
java.lang.String getFileExtension()
java.lang.String[] getFileExtensions()
java.lang.String getFileDescription()
void setFile(java.io.File file) throws java.io.IOException
file
- the file to load from
java.io.IOException
- if an error occursjava.io.File retrieveFile()
File
valuevoid setUseRelativePath(boolean rp)
rp
- true if relative paths are to be usedboolean getUseRelativePath()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |