Checks if the separator or a "Common" separator is in the segment.
Checks if the separator or a "Common" separator is in the segment.
If the separator is found the an IllegalArgumentException is thrown. If a common separator is found (/ or \) then a warning is logged and the stack trace is logged if fine is enabled for the filesystem's logger.
If the separator is found the an IllegalArgumentException is thrown
Get the Resource context associated with this FileSystem instance.
Get the Resource context associated with this FileSystem instance.
the associated ResourceContext
as FileSystems are immutable objects a given Resource instance will always be associated with the same ResourceContext
Creates an empty directory in the provided directory with the provided prefix and suffixes, if the filesystem supports it.
Creates an empty directory in the provided directory with the provided prefix and suffixes, if the filesystem supports it. If not then a UnsupportedOperationException is thrown. The directory will not replace an existing file/directory and it is guaranteed to be unique and not previously used by another process at time of creation.
the starting characters of the directory name. Default is a randomly generated prefix
the last characters of the directory name Default is null (no suffix)
the directory to create the directory in. If null or not declared the directory will be created in the system temporary folder Default is null (system/user temp folder)
If true then the directory and all contained folders will be deleted when the JVM is shutdown. Default is true
If the filesystem does not support temporary files
Creates an empty file in the provided directory with the provided prefix and suffixes, if the filesystem supports it.
Creates an empty file in the provided directory with the provided prefix and suffixes, if the filesystem supports it. If not then a UnsupportedOperationException is thrown.
The file will not replace an existing file and it is guaranteed to be unique and not previously used by another process at time of creation.
the starting characters of the file name. Default is a randomly generated prefix
the last characters of the file name Default is null (no suffix)
the directory to create the file in. If null or not declared the file will be created in the system temporary folder Default is null (system/user temp folder)
If true then the file will be deleted when the JVM is shutdown Default is true
If the filesystem does not support temporary files
Create a path object for the filesystem from the path segments
Create a path object for the filesystem from the path segments
Create a path object for the filesystem
Create a path object for the filesystem
Creates a function that returns true if parameter matches the pattern used to create the function.
Creates a function that returns true if parameter matches the pattern used to create the function.
If the syntax is glob then the following patterns are accepted:
Currently unsupported slated to be supported shortly are:
The matching of root components is highly implementation-dependent and is not specified.
If the syntax is regex then the pattern component is a pattern as defined by the
java.util.regex.Pattern
class
In both cases the matching is case sensitive
the pattern of the match
the identifier of the syntax that will be used to interpret the pattern Default is glob
a function that matches paths against the matching specification in syntax and Pattern
Path#contents
A name identifying the filesystem
A name identifying the filesystem
Returns the list of roots for this filesystem
Returns the list of roots for this filesystem
The path segment separator string for the filesystem
The path segment separator string for the filesystem
Update the current ResourceContext and return a new FileSystem instance with the updated context
Update the current ResourceContext and return a new FileSystem instance with the updated context
A function for transforming the current context to a new context with new values.
a new instance configured with the new context
Create a new FileSystem instance that is configured with the new ResourceContext
Create a new FileSystem instance that is configured with the new ResourceContext
a new ResourceContext
a new instance configured with the new context