ParcelFileDescriptorRewinder

class ParcelFileDescriptorRewinder : DataRewinder<T>

Implementation for ParcelFileDescriptors that rewinds file descriptors by seeking to 0.

Constructors

Link copied to clipboard
open fun ParcelFileDescriptorRewinder(parcelFileDescriptor: ParcelFileDescriptor)

Types

Link copied to clipboard
class Factory : DataRewinder.Factory<T>
Factory for producing ParcelFileDescriptorRewinders from ParcelFileDescriptors.

Functions

Link copied to clipboard
open fun cleanup()
Called when this rewinder is no longer needed and can be cleaned up.
Link copied to clipboard
open fun isSupported(): Boolean
Link copied to clipboard
open fun rewindAndGet(): ParcelFileDescriptor
Rewinds the wrapped data back to the beginning and returns the re-wound data (or a wrapper for the re-wound data).