Package no.maddin.niofs.smb
Class SMBFileSystemProvider
java.lang.Object
java.nio.file.spi.FileSystemProvider
no.maddin.niofs.smb.SMBFileSystemProvider
Provider based on smbj.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkAccess
(Path path, AccessMode... modes) void
copy
(Path source, Path target, CopyOption... options) void
createDirectory
(Path dir, FileAttribute<?>... attrs) void
com.hierynomus.smbj.SMBClient
<V extends FileAttributeView>
VgetFileAttributeView
(Path path, Class<V> type, LinkOption... options) getFileStore
(Path path) getFileSystem
(URI uri) boolean
boolean
isSameFile
(Path path, Path path2) void
move
(Path source, Path target, CopyOption... options) newByteChannel
(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) newDirectoryStream
(Path dir, DirectoryStream.Filter<? super Path> filter) newFileSystem
(URI uri, Map<String, ?> env) (package private) static SMBShare.UsernamePassword
package private for testing purposes<A extends BasicFileAttributes>
AreadAttributes
(Path path, Class<A> type, LinkOption... options) readAttributes
(Path path, String attributes, LinkOption... options) void
setAttribute
(Path path, String attribute, Object value, LinkOption... options) static SMBPath
(package private) SMBFileSystemProvider.SMBParts
Methods inherited from class java.nio.file.spi.FileSystemProvider
createLink, createSymbolicLink, deleteIfExists, exists, installedProviders, newAsynchronousFileChannel, newFileChannel, newFileSystem, newInputStream, newOutputStream, readAttributesIfExists, readSymbolicLink
-
Constructor Details
-
SMBFileSystemProvider
public SMBFileSystemProvider()
-
-
Method Details
-
getClient
public com.hierynomus.smbj.SMBClient getClient() -
getScheme
- Specified by:
getScheme
in classFileSystemProvider
-
newFileSystem
- Specified by:
newFileSystem
in classFileSystemProvider
- Throws:
IOException
-
principal
package private for testing purposes -
splitURI
-
getFileSystem
- Specified by:
getFileSystem
in classFileSystemProvider
-
getPath
- Specified by:
getPath
in classFileSystemProvider
-
newByteChannel
public SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException - Specified by:
newByteChannel
in classFileSystemProvider
- Throws:
IOException
-
newDirectoryStream
public DirectoryStream<Path> newDirectoryStream(Path dir, DirectoryStream.Filter<? super Path> filter) - Specified by:
newDirectoryStream
in classFileSystemProvider
-
createDirectory
- Specified by:
createDirectory
in classFileSystemProvider
-
delete
- Specified by:
delete
in classFileSystemProvider
-
copy
- Specified by:
copy
in classFileSystemProvider
-
move
- Specified by:
move
in classFileSystemProvider
-
isSameFile
- Specified by:
isSameFile
in classFileSystemProvider
-
isHidden
- Specified by:
isHidden
in classFileSystemProvider
-
getFileStore
- Specified by:
getFileStore
in classFileSystemProvider
-
checkAccess
- Specified by:
checkAccess
in classFileSystemProvider
-
getFileAttributeView
public <V extends FileAttributeView> V getFileAttributeView(Path path, Class<V> type, LinkOption... options) - Specified by:
getFileAttributeView
in classFileSystemProvider
-
readAttributes
public <A extends BasicFileAttributes> A readAttributes(Path path, Class<A> type, LinkOption... options) - Specified by:
readAttributes
in classFileSystemProvider
-
readAttributes
- Specified by:
readAttributes
in classFileSystemProvider
-
setAttribute
- Specified by:
setAttribute
in classFileSystemProvider
-
smbPath
-