Class 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 Detail

      • emptyUTFString

        static final byte[] emptyUTFString
      • dirName

        String dirName
        Directory name of the persistent object.
      • name

        String name
        Name of the persistent object.
      • value

        byte[] value
        Value of the persistent object.
    • Constructor Detail

      • BackupRecord

        BackupRecord()
        Creates an empty record.
      • BackupRecord

        public BackupRecord​(String dirName,
                            String name,
                            byte[] value)
        Creates a record with the specified values.
        Parameters:
        dirName - the directory name of the persistent object.
        name - the name of the persistent object.
        value - the value of the persistent object.
    • 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