DRFile(VirtualFiles) Class Reference

Declared in

Overview

This category on DRFile defines methods that allow the file to be specified using data passed in at creation time.

Tasks

Miscellaneous

Class Methods

virtualFileWithName:data:

Creates a virtual file object

+ (DRFile*) virtualFileWithName:(NSString*)name data:(NSData*)data;
Parameters
name

The name of the file on disc.

data

The data that will become the contents of the file on the disc.

Return Value

An autoreleased DRFile object.

Discussion

This type of DRFile burns the data passed in to disc, creating a file with the passed in name.

virtualFileWithName:dataProducer:

Creates a virtual file object

+ (DRFile*) virtualFileWithName:(NSString*)name dataProducer:(id)producer;
Parameters
name

The name of the file on disc.

data

The data that will become the contents of the file on the disc.

Return Value

An autoreleased DRFile object.

Discussion

This type of DRFile burns the data produced to the output disc, creating a file with the passed in name.

Instance Methods

initWithName:data:

Initializes a virtual file object

- (id) initWithName:(NSString*)name data:(NSData*)data;
Parameters
name

The name of the file on output disc.

data

The data that will become the contents of the file on the output disc.

Return Value

A DRFile object.

Discussion

This type of DRFile burns the data passed in to the output disc, creating a file with the passed in name.

initWithName:dataProducer:

Initializes a virtual file object

- (id) initWithName:(NSString*)name dataProducer:(id)producer;
Parameters
name

The name of the file on output disc.

producer

The object supplying the file data to the burn.

Return Value

A DRFile object.

Discussion

This type of DRFile burns the data produced to the output disc, creating a file with the passed in name.