Class FileSection

All Implemented Interfaces:
Serializable, org.refcodes.mixin.AliasAccessor, org.refcodes.mixin.LengthAccessor, org.refcodes.mixin.PayloadAccessor<File>, org.refcodes.mixin.PayloadAccessor.PayloadBuilder<File,PayloadTransmission<File>>, org.refcodes.mixin.PayloadAccessor.PayloadMutator<File>, org.refcodes.mixin.PayloadAccessor.PayloadProperty<File>, org.refcodes.mixin.Schemable<SerialSchema>, PayloadSection<File>, PayloadTransmission<File>, Section, Section.SectionMixin, Transmission, Transmission.TransmissionMixin

public class FileSection extends AbstractPayloadSection<File> implements PayloadSection<File>
A FileSection represents a File on the file system and can be used to receive or to transmit a File. Using a Supplier, one can use for example a StringSection's value (as of AbstractPayloadSection.getPayload()) to determine the underlying File name dynamically. Whenever the underlying File is to be accessed, then the Supplier is called (if provided) to construct the according File dynamically. This way, a file name provided by a StringSection can be used for the FileSection within the same transmission.
See Also: