public class RmfBlocksManager extends ClientRegister implements IRmfBlock
clients| Constructor and Description |
|---|
RmfBlocksManager(String path)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkRmf()
Método que checkea si el fichero pasado es valido para ser rmf.
|
void |
fileBackup()
Genera una copia de seguridad del fichero del rmf
|
String |
getMainTag()
Obtiene el tag principal del bloque
|
String |
getPath()
Obtiene la ruta del fichero
|
Object |
getResult()
Obtiene el objeto resultante de haber aplicado un read.
|
void |
read(String xml)
Lee el bloque XML pasado por parámetro y carga el objeto correspondiente
con los datos.
|
void |
setPath(String path)
Asigna la ruta del fichero
|
String |
write()
Obtiene un bloque XML que representa a las propiedades del objeto a
serializar.
|
String |
write(boolean rmfBackup)
Obtiene un bloque XML que representa a las propiedades del objeto a
serializar.
|
addClient, getClient, getClient, getClientsCount, removeAllClients, removeClientpublic RmfBlocksManager(String path)
path - public void setPath(String path)
path - public String getPath()
public void fileBackup()
throws IOException
IOExceptionpublic void read(String xml) throws ParsingException
IRmfBlockread in interface IRmfBlockParsingExceptionpublic String write() throws IOException
IRmfBlockwrite in interface IRmfBlockIOExceptionpublic String write(boolean rmfBackup) throws IOException, FileNotFoundException
rmfBackup - Especifica si debe hacer la copia de seguridad.IOExceptionFileNotFoundExceptionpublic boolean checkRmf()
public String getMainTag()
IRmfBlockgetMainTag in interface IRmfBlock