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 TypeMethodDescriptionvoidcheckAccess(Path path, AccessMode... modes) voidcopy(Path source, Path target, CopyOption... options) voidcreateDirectory(Path dir, FileAttribute<?>... attrs) voidcom.hierynomus.smbj.SMBClient<V extends FileAttributeView>
VgetFileAttributeView(Path path, Class<V> type, LinkOption... options) getFileStore(Path path) getFileSystem(URI uri) booleanbooleanisSameFile(Path path, Path path2) voidmove(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.UsernamePasswordpackage private for testing purposes<A extends BasicFileAttributes>
AreadAttributes(Path path, Class<A> type, LinkOption... options) readAttributes(Path path, String attributes, LinkOption... options) voidsetAttribute(Path path, String attribute, Object value, LinkOption... options) static SMBPath(package private) SMBFileSystemProvider.SMBPartsMethods 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:
getSchemein classFileSystemProvider
-
newFileSystem
- Specified by:
newFileSystemin classFileSystemProvider- Throws:
IOException
-
principal
package private for testing purposes -
splitURI
-
getFileSystem
- Specified by:
getFileSystemin classFileSystemProvider
-
getPath
- Specified by:
getPathin classFileSystemProvider
-
newByteChannel
public SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException - Specified by:
newByteChannelin classFileSystemProvider- Throws:
IOException
-
newDirectoryStream
public DirectoryStream<Path> newDirectoryStream(Path dir, DirectoryStream.Filter<? super Path> filter) - Specified by:
newDirectoryStreamin classFileSystemProvider
-
createDirectory
- Specified by:
createDirectoryin classFileSystemProvider
-
delete
- Specified by:
deletein classFileSystemProvider
-
copy
- Specified by:
copyin classFileSystemProvider
-
move
- Specified by:
movein classFileSystemProvider
-
isSameFile
- Specified by:
isSameFilein classFileSystemProvider
-
isHidden
- Specified by:
isHiddenin classFileSystemProvider
-
getFileStore
- Specified by:
getFileStorein classFileSystemProvider
-
checkAccess
- Specified by:
checkAccessin classFileSystemProvider
-
getFileAttributeView
public <V extends FileAttributeView> V getFileAttributeView(Path path, Class<V> type, LinkOption... options) - Specified by:
getFileAttributeViewin classFileSystemProvider
-
readAttributes
public <A extends BasicFileAttributes> A readAttributes(Path path, Class<A> type, LinkOption... options) - Specified by:
readAttributesin classFileSystemProvider
-
readAttributes
- Specified by:
readAttributesin classFileSystemProvider
-
setAttribute
- Specified by:
setAttributein classFileSystemProvider
-
smbPath
-