Package qupath.lib.projects
Class ProjectIO
java.lang.Object
qupath.lib.projects.ProjectIO
Read QuPath projects.
Projects should now be written with Project.syncChanges()
- Author:
- Pete Bankhead
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringGet the default extension for a QuPath project file, without the 'dot'.static StringgetProjectExtension(boolean includePeriod) Get the default extension for a QuPath project file.static <T> Project<T>loadProject(File fileProject, Class<T> cls) Load a project from a local file.static <T> Project<T>loadProject(URI uri, Class<T> cls) Read project from URI.
-
Field Details
-
DEFAULT_PROJECT_NAME
Default file name for a QuPath project.- See Also:
-
DEFAULT_PROJECT_EXTENSION
Default file extension for a QuPath project.- See Also:
-
-
Constructor Details
-
ProjectIO
public ProjectIO()
-
-
Method Details
-
loadProject
Read project from URI. Currently, this assumes that the URI refers to a local file.- Parameters:
uri-cls-- Returns:
- Throws:
IOException
-
loadProject
Load a project from a local file.- Parameters:
fileProject-cls-- Returns:
- Throws:
IOException
-
getProjectExtension
Get the default extension for a QuPath project file.- Parameters:
includePeriod-- Returns:
-
getProjectExtension
Get the default extension for a QuPath project file, without the 'dot'.- Returns:
- See Also:
-