Package fr.dyade.aaa.util.backup
Class BackupRecord
- java.lang.Object
-
- fr.dyade.aaa.util.backup.BackupRecord
-
public class BackupRecord extends Object
Class defining the content of a [Backup|Restore]File. Each BackupRecord contains the description of a persistent object.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) StringdirNameDirectory name of the persistent object.(package private) static byte[]emptyUTFString(package private) StringnameName of the persistent object.(package private) byte[]valueValue of the persistent object.
-
Constructor Summary
Constructors Constructor Description BackupRecord()Creates an empty record.BackupRecord(String dirName, String name, byte[] value)Creates a record with the specified values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDirName()Returns the directory name of the persistent object.StringgetName()Returns the name of the persistent object.StringgetPathname()Returns the pathname of the persistent object.byte[]getValue()Returns the value of the persistent object.voidsetValue(byte[] value)Sets the value of the persistent object.StringtoString()
-
-
-
Method Detail
-
getDirName
public String getDirName()
Returns the directory name of the persistent object.- Returns:
- the dirName
-
getName
public String getName()
Returns the name of the persistent object.- Returns:
- the name
-
getPathname
public String getPathname()
Returns the pathname of the persistent object.- Returns:
- the name
-
getValue
public byte[] getValue()
Returns the value of the persistent object.- Returns:
- the value
-
setValue
public void setValue(byte[] value)
Sets the value of the persistent object.- Parameters:
value- the value to set
-
-