Java Reference

PathMgr

Introduction

This article describes the KOS PathMgr component.

API Components

This section defines the PathMgr component.

PathMgr (component)

API: PathMgr class
public class PathMgr {

    // Name of the root path:
    public static final String ROOT = "root";

    public NamedPath addPath(String  name, NamedPath base, String path);
    public NamedPath addPath(Enum<?> name, NamedPath base, String path);

    public NamedPath addPath(String  name, String  baseName, String path);
    public NamedPath addPath(Enum<?> name, String  baseName, String path);
    public NamedPath addPath(Enum<?> name, Enum<?> baseName, String path);

    public NamedPath getPath(String  name);
    public NamedPath getPath(Enum<?> name);

    public File getFile(String  name);
    public File getFile(Enum<?> name);

    public File getFile(String  name, String path);
    public File getFile(Enum<?> name, String path);

    public void mkdirs(String  name);
    public void mkdirs(Enum<?> name);
}

NamedPath (class)

API: NamedPath class
public class NamedPath {

    @Getter
    private String name;

    public String getPath();
    public String getPath(String path);

    public File getFile();
    public File getFile(String path);
}

NamedPathOverrides (interface)

API: NamedPathOverrides interface
public interface NamedPathOverrides {

    // Returns an override path for the specified name, or null if there is no override:
    String getOverride(String name);
}
Previous
Next
On this page
Java Development
Seamlessly transition from Legacy+ systems to Freestyle microdosing and advanced distributed dispense systems.
UI Development
Using KOS SDKs, integrating Consumer and Non-consumer facing UIs becomes seamless, giving you less hassle and more time to create.
Video Library
Meet some of our development team, as they lead you through the tools, features, and tips and tricks of various KOS tools.
Resources
Familiarize yourself with KOS terminology, our reference materials, and explore additional resources that complement your KOS journey.
Copyright © 2024 TCCC. All rights reserved.