Show / Hide Table of Contents

    Class FolderWrapper

    This is a class to allow access to resources within a folder. It is a sibling to ZipWrapper that can access resources within a zip file

    Inheritance
    Object
    FolderWrapper
    Implements
    IFolderWrapper
    IDisposable
    Namespace: RCM
    Assembly: Anki.Resources.SDK.dll
    Syntax
    public class FolderWrapper : IFolderWrapper, IDisposable

    Constructors

    FolderWrapper(String)

    Creates an object that can access resources within a folder

    Declaration
    public FolderWrapper(string basePath)
    Parameters
    Type Name Description
    String basePath

    The basepath to the folder

    Methods

    Dispose()

    Dispose of any internal resources

    Declaration
    public void Dispose()

    Dispose(Boolean)

    Dispose of the binary stream

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    Boolean disposing

    Exists(String)

    Determines whether the specified file exists.

    Declaration
    public bool Exists(string relativePath)
    Parameters
    Type Name Description
    String relativePath

    The name of file within the wrapper

    Returns
    Type Description
    Boolean

    true if the file exists within the wrapper, false otherwise

    Stream(String)

    This creates a stream for the given resources within the folder

    Declaration
    public Stream Stream(string relativePath)
    Parameters
    Type Name Description
    String relativePath

    The name of file within the wrapper

    Returns
    Type Description
    Stream

    A stream that can be used to access the file

    Implements

    IFolderWrapper
    System.IDisposable
    Back to top Copyright (c) 2020 by Randall Maas