VMDFileCollection

Provides a collection of VMDFiles that can be passed to the VMD parser to retrieve all relevant VMD data.

Since

1.1

Inheritors

Constructors

Link copied to clipboard
constructor()

Create a new file collection

constructor(mapXmlFile: VMDFile?, mapGeojsonFiles: Array<VMDFile?>)

Constructor.

constructor(mapXmlFile: VMDFile?, mapGeojsonFiles: Array<VMDFile?>, customMapInfoJsonFile: VMDFile?)

Constructor.

constructor(baseDirectory: String)

Constructor that assumes default file names are used, and that they are stored locally.

constructor(baseUrl: URL)

Constructor that assumes default file names are used, and that they are stored remotely. Should be absolute url.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
fun interface FileFilter

Functions

Link copied to clipboard
Link copied to clipboard
open fun listFiles(baseDirectory: String): Array<String>?
Link copied to clipboard
fun load(venueId: String?, baseDirectory: String = String.format("venue_map_%s/", venueId), mapProvider: MapProvider?, destinationDirectory: String)
Link copied to clipboard
open fun openFile(fileName: String): InputStream?
Link copied to clipboard
fun setMapGeojsonFile(mapGeojsonFile: VMDFile?)
Link copied to clipboard
open fun unzipFiles()

An instance of this class will not have any zip files to unzip. This method's logic is implemented in a subclass. NOTE: It might be a better practice to create an interface for the file collection. This was added instead, so that the method signatures didn't have to change for the existing sdk methods.

Properties

Link copied to clipboard

Building XML files for legacy VMDs

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard