Package org.uberfire.java.nio.fs.file
Class BaseSimpleFileSystem
- java.lang.Object
-
- org.uberfire.java.nio.fs.file.BaseSimpleFileSystem
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.uberfire.commons.lifecycle.Disposable,org.uberfire.java.nio.base.FileSystemId,org.uberfire.java.nio.Closeable,org.uberfire.java.nio.file.FileSystem
- Direct Known Subclasses:
SimpleUnixFileSystem,SimpleWindowsFileSystem
public abstract class BaseSimpleFileSystem extends Object implements org.uberfire.java.nio.file.FileSystem, org.uberfire.java.nio.base.FileSystemId
-
-
Field Summary
Fields Modifier and Type Field Description static charUNIX_SEPARATORstatic StringUNIX_SEPARATOR_STRINGstatic charWINDOWS_SEPARATORstatic StringWINDOWS_SEPARATOR_STRING
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()StringgetName()org.uberfire.java.nio.file.PathgetPath(String first, String... more)org.uberfire.java.nio.file.PathMatchergetPathMatcher(String syntaxAndPattern)StringgetSeparator()StringgetSeparator(String path)org.uberfire.java.nio.file.attribute.UserPrincipalLookupServicegetUserPrincipalLookupService()Stringid()booleanisOpen()booleanisReadOnly()org.uberfire.java.nio.file.WatchServicenewWatchService()org.uberfire.java.nio.file.spi.FileSystemProviderprovider()Set<String>supportedFileAttributeViews()StringtoString()
-
-
-
Field Detail
-
UNIX_SEPARATOR
public static final char UNIX_SEPARATOR
- See Also:
- Constant Field Values
-
WINDOWS_SEPARATOR
public static final char WINDOWS_SEPARATOR
- See Also:
- Constant Field Values
-
UNIX_SEPARATOR_STRING
public static final String UNIX_SEPARATOR_STRING
- See Also:
- Constant Field Values
-
WINDOWS_SEPARATOR_STRING
public static final String WINDOWS_SEPARATOR_STRING
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public String id()
- Specified by:
idin interfaceorg.uberfire.java.nio.base.FileSystemId
-
provider
public org.uberfire.java.nio.file.spi.FileSystemProvider provider()
- Specified by:
providerin interfaceorg.uberfire.java.nio.file.FileSystem
-
isOpen
public boolean isOpen()
- Specified by:
isOpenin interfaceorg.uberfire.java.nio.file.FileSystem
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnlyin interfaceorg.uberfire.java.nio.file.FileSystem
-
getSeparator
public String getSeparator()
- Specified by:
getSeparatorin interfaceorg.uberfire.java.nio.file.FileSystem
-
supportedFileAttributeViews
public Set<String> supportedFileAttributeViews()
- Specified by:
supportedFileAttributeViewsin interfaceorg.uberfire.java.nio.file.FileSystem
-
getPath
public org.uberfire.java.nio.file.Path getPath(String first, String... more) throws org.uberfire.java.nio.file.InvalidPathException
- Specified by:
getPathin interfaceorg.uberfire.java.nio.file.FileSystem- Throws:
org.uberfire.java.nio.file.InvalidPathException
-
getPathMatcher
public org.uberfire.java.nio.file.PathMatcher getPathMatcher(String syntaxAndPattern) throws IllegalArgumentException, PatternSyntaxException, UnsupportedOperationException
- Specified by:
getPathMatcherin interfaceorg.uberfire.java.nio.file.FileSystem- Throws:
IllegalArgumentExceptionPatternSyntaxExceptionUnsupportedOperationException
-
getUserPrincipalLookupService
public org.uberfire.java.nio.file.attribute.UserPrincipalLookupService getUserPrincipalLookupService() throws UnsupportedOperationException- Specified by:
getUserPrincipalLookupServicein interfaceorg.uberfire.java.nio.file.FileSystem- Throws:
UnsupportedOperationException
-
newWatchService
public org.uberfire.java.nio.file.WatchService newWatchService() throws UnsupportedOperationException, org.uberfire.java.nio.IOException- Specified by:
newWatchServicein interfaceorg.uberfire.java.nio.file.FileSystem- Throws:
UnsupportedOperationExceptionorg.uberfire.java.nio.IOException
-
close
public void close() throws org.uberfire.java.nio.IOException, UnsupportedOperationException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.uberfire.java.nio.Closeable- Throws:
org.uberfire.java.nio.IOExceptionUnsupportedOperationException
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.uberfire.java.nio.file.FileSystem
-
-