Interface MAMBackupDataInput
-
- All Implemented Interfaces:
-
com.microsoft.intune.mam.client.util.PseudoOverrideProxyable
public interface MAMBackupDataInput implements PseudoOverrideProxyableMAM representation of a BackupDataInput. This must be used in place of BackupDataInput and provides all the same methods.
-
-
Method Summary
Modifier and Type Method Description abstract intgetDataSize()See getDataSize. abstract StringgetKey()See getKey. abstract intreadEntityData(Array<byte> data, int offset, int size)See readEntityData. abstract booleanreadNextHeader()See readNextHeader. abstract voidskipEntityData()See skipEntityData. abstract BackupDataInputasBackupDataInput()Return the underlying BackupDataInput. -
-
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.
-
-
-
-