Class ProjectIO

java.lang.Object
qupath.lib.projects.ProjectIO

public class ProjectIO extends Object
Read QuPath projects.

Projects should now be written with Project.syncChanges()

Author:
Pete Bankhead
  • Field Details

    • DEFAULT_PROJECT_NAME

      public static final String DEFAULT_PROJECT_NAME
      Default file name for a QuPath project.
      See Also:
    • DEFAULT_PROJECT_EXTENSION

      public static final String DEFAULT_PROJECT_EXTENSION
      Default file extension for a QuPath project.
      See Also:
  • Constructor Details

    • ProjectIO

      public ProjectIO()
  • Method Details

    • loadProject

      public static <T> Project<T> loadProject(URI uri, Class<T> cls) throws IOException
      Read project from URI. Currently, this assumes that the URI refers to a local file.
      Parameters:
      uri -
      cls -
      Returns:
      Throws:
      IOException
    • loadProject

      public static <T> Project<T> loadProject(File fileProject, Class<T> cls) throws IOException
      Load a project from a local file.
      Parameters:
      fileProject -
      cls -
      Returns:
      Throws:
      IOException
    • getProjectExtension

      public static String getProjectExtension(boolean includePeriod)
      Get the default extension for a QuPath project file.
      Parameters:
      includePeriod -
      Returns:
    • getProjectExtension

      public static String getProjectExtension()
      Get the default extension for a QuPath project file, without the 'dot'.
      Returns:
      See Also: