Class PathImporter

  • Direct Known Subclasses:
    PathImporter

    public class PathImporter
    extends java.lang.Object
    The PathImporter is a tool for importing Paths from config files
    • Constructor Summary

      Constructors 
      Constructor Description
      PathImporter()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static RawPath jsonToPath​(java.io.File jsonFile)
      Load a WPILib PathWeaver JSON file as a Lib5K Path
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PathImporter

        public PathImporter()
    • Method Detail

      • jsonToPath

        public static RawPath jsonToPath​(java.io.File jsonFile)
                                  throws java.io.IOException,
                                         java.io.FileNotFoundException
        Load a WPILib PathWeaver JSON file as a Lib5K Path
        Parameters:
        jsonFile - JSON file
        Returns:
        Loaded Path object
        Throws:
        java.io.IOException - Thrown if something goes wrong parsing the file
        java.io.FileNotFoundException - Thrown if the file does not exist