Package com.coti.tools
Class Rutas
- java.lang.Object
-
- com.coti.tools.Rutas
-
public class Rutas extends java.lang.Object
Class Rutas creates instances of Path that point to the Desktop or Documents
folders, as well as to objects in these folders, and even to objects in folders
on Desktop or in Documents.
-
-
Constructor Summary
Constructors Constructor Description Rutas()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.nio.file.Path
pathToDesktop()
This constructor returns the path to the Desktop for any platformstatic java.nio.file.Path
pathToDocuments()
This method returns the path to Documents for any platformstatic java.nio.file.Path
pathToFileInDocuments(java.lang.String nameOfFile)
This method gives back the Path to a file in Documentsstatic java.nio.file.Path
pathToFileInFolderInDocuments(java.lang.String nameOfFolder, java.lang.String nameOfFile)
This method gives back the Path to a file in a folder in Documentsstatic java.nio.file.Path
pathToFileInFolderOnDesktop(java.lang.String nameOfFolder, java.lang.String nameOfFile)
This method gives back the Path to a file in a folder on the Desktopstatic java.nio.file.Path
pathToFileOnDesktop(java.lang.String nameOfFile)
This method gives back the Path to a file on the Desktopstatic java.nio.file.Path
pathToFolderInDocuments(java.lang.String nameOfFolder)
This method returns a path to a folder in Documents for any platformstatic java.nio.file.Path
pathToFolderOnDesktop(java.lang.String nameOfFolder)
This method returns a path to a folder on Desktop for any platform
-
-
-
Method Detail
-
pathToDesktop
public static java.nio.file.Path pathToDesktop()
This constructor returns the path to the Desktop for any platform- Returns:
- a Path as described
-
pathToFolderOnDesktop
public static java.nio.file.Path pathToFolderOnDesktop(java.lang.String nameOfFolder)
This method returns a path to a folder on Desktop for any platform- Parameters:
nameOfFolder
- the name of the folder whose path on the Desktop is needed- Returns:
- a Path as described
-
pathToFileOnDesktop
public static java.nio.file.Path pathToFileOnDesktop(java.lang.String nameOfFile)
This method gives back the Path to a file on the Desktop- Parameters:
nameOfFile
- the name of the file on the desktop whose path is wanted- Returns:
- a Path as described
-
pathToFileInFolderOnDesktop
public static java.nio.file.Path pathToFileInFolderOnDesktop(java.lang.String nameOfFolder, java.lang.String nameOfFile)
This method gives back the Path to a file in a folder on the Desktop- Parameters:
nameOfFolder
- - the name of the folder in which the file is placednameOfFile
- - the name of the file placed inside a folder on the Desktop- Returns:
- a Path as described
-
pathToDocuments
public static java.nio.file.Path pathToDocuments()
This method returns the path to Documents for any platform- Returns:
- a Path as described
-
pathToFolderInDocuments
public static java.nio.file.Path pathToFolderInDocuments(java.lang.String nameOfFolder)
This method returns a path to a folder in Documents for any platform- Parameters:
nameOfFolder
- the name of a folder in Documents whose path is wanted- Returns:
- a Path as described
-
pathToFileInDocuments
public static java.nio.file.Path pathToFileInDocuments(java.lang.String nameOfFile)
This method gives back the Path to a file in Documents- Parameters:
nameOfFile
- the name of a file in Documents whose path is wanted- Returns:
- a Path as described
-
pathToFileInFolderInDocuments
public static java.nio.file.Path pathToFileInFolderInDocuments(java.lang.String nameOfFolder, java.lang.String nameOfFile)
This method gives back the Path to a file in a folder in Documents- Parameters:
nameOfFolder
- - the name of the folder in which the file is placednameOfFile
- - the name of the file placed inside a folder on the Desktop- Returns:
- a Path as described
-
-