Interface MAMBackupDataInput

  • All Implemented Interfaces:
    com.microsoft.intune.mam.client.util.PseudoOverrideProxyable

    
    public interface MAMBackupDataInput
     implements PseudoOverrideProxyable
                        

    MAM representation of a BackupDataInput. This must be used in place of BackupDataInput and provides all the same methods.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract int getDataSize() See getDataSize.
      abstract String getKey() See getKey.
      abstract int readEntityData(Array<byte> data, int offset, int size) See readEntityData.
      abstract boolean readNextHeader() See readNextHeader.
      abstract void skipEntityData() See skipEntityData.
      abstract BackupDataInput asBackupDataInput() Return the underlying BackupDataInput.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getDataSize

         abstract int getDataSize()

        See getDataSize. Report the size in bytes of data associated with the current entity in the restore stream from the underlying DataBackupInput.

        Returns:

        Size of the data associated with the current entity.

      • getKey

         abstract String getKey()

        See getKey. Reports the key associated with the current entity in the restore stream from the underlying DataBackupInput.

        Returns:

        Key associated with the current entity.

      • readEntityData

         abstract int readEntityData(Array<byte> data, int offset, int size)

        See readEntityData. Reads a record's raw data from the restore stream.

        Parameters:
        data - Raw data from the restore stream.
        offset - Offset within the data array at which the data will be placed.
        size - The number of bytes to read.
        Returns:

        The number of bytes of data read.

      • readNextHeader

         abstract boolean readNextHeader()

        See readNextHeader. Advances the file reader to the next backup entity to read. We intercept here and transparently handle restoring MAM Identities backed up.

        Returns:

        Whether or not the underlying file was advanced

      • skipEntityData

         abstract void skipEntityData()

        See skipEntityData. Consume the current entity's data without extracting it into a buffer.

      • asBackupDataInput

         abstract BackupDataInput asBackupDataInput()

        Return the underlying BackupDataInput.

        Returns:

        Theunderlying BackupDataInput.