FileResourceExporter

class FileResourceExporter(location: File, write: Boolean = true) : OutputResourceVisitor<File>

A visitor that saves each type of OutputResource to a file and returns it.

Parameters

location

directory to save the resources to

Constructors

Link copied to clipboard
constructor(location: File, write: Boolean = true)

Types

Link copied to clipboard

Mapping of OutputResources to their file names.

Functions

Link copied to clipboard
open override fun visit(artifact: BinaryOutputArtifact): File

open override fun visit(group: OutputResourceGroup): File

Saves an OutputResourceGroup to a directory which contains its nested files.

open override fun visit(artifact: TextOutputArtifact): File

Saves an OutputArtifact to a file with text content.