public interface XmlDataInterface
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFileName()
Get the file name where this object is or will be stored
|
java.lang.String |
getPath()
Get the path where this object is or will be stored
|
java.lang.String |
getXmlData()
Get the XML text representing this object
|
void |
save()
Save this object into a file.
|
void |
saveAs(java.lang.String file)
Save this object into a file with the give file name
|
void |
setFileName(java.lang.String newFileName)
Set the file name where this object is or will be stored
|
void |
setPath(java.lang.String newPath)
Set the path where this object is or will be stored
|
void |
setXmlData(java.lang.String data)
Set the XML text representing this object
|
java.lang.String getXmlData()
void setFileName(java.lang.String newFileName)
newFileName
- void setPath(java.lang.String newPath)
newPath
- java.lang.String getFileName()
java.lang.String getPath()
void setXmlData(java.lang.String data)
data
- void saveAs(java.lang.String file) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException
file
- Complete path where to save the filejava.io.FileNotFoundException
java.io.UnsupportedEncodingException
void save() throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException
java.io.FileNotFoundException
java.io.UnsupportedEncodingException