Skip navigation links
B C D E F G I L P R S W 

B

buildProperItemPath(String, String) - Static method in class ch.swaechter.smbjwrapper.SmbItem
Build the proper item path for a path and a name.

C

ch.swaechter.smbjwrapper - package ch.swaechter.smbjwrapper
 
ch.swaechter.smbjwrapper.streams - package ch.swaechter.smbjwrapper.streams
 
ch.swaechter.smbjwrapper.utils - package ch.swaechter.smbjwrapper.utils
 
close() - Method in class ch.swaechter.smbjwrapper.SmbConnection
Close the connection.
close() - Method in class ch.swaechter.smbjwrapper.streams.SmbInputStream
close() - Method in class ch.swaechter.smbjwrapper.streams.SmbOutputStream
copyFileViaServerSideCopy(SmbFile) - Method in class ch.swaechter.smbjwrapper.SmbFile
Copy the current file to another file on the same server share via server side copy.
createDirectory() - Method in class ch.swaechter.smbjwrapper.SmbDirectory
Create the current directory.
createDirectoryInCurrentDirectory(String) - Method in class ch.swaechter.smbjwrapper.SmbDirectory
Create a directory in the current directory.
createFile() - Method in class ch.swaechter.smbjwrapper.SmbFile
Create a new file.
createFileInCurrentDirectory(String) - Method in class ch.swaechter.smbjwrapper.SmbDirectory
Create a file in the current directory.

D

deleteDirectoryRecursively() - Method in class ch.swaechter.smbjwrapper.SmbDirectory
Delete the current directory with all its subdirectories and subfiles.
deleteFile() - Method in class ch.swaechter.smbjwrapper.SmbFile
Delete the current file.

E

ensureConnectionIsAlive() - Method in class ch.swaechter.smbjwrapper.SmbConnection
Ensure that the connection is alive.
ensureExists() - Method in class ch.swaechter.smbjwrapper.SmbDirectory
Ensure that the given directory path does exist - if not, the path is created.
equals(Object) - Method in class ch.swaechter.smbjwrapper.SmbDirectory
Check if the current and the given objects are equals.
equals(Object) - Method in class ch.swaechter.smbjwrapper.SmbFile
Check if the current and the given objects are equals.
equals(Object) - Method in class ch.swaechter.smbjwrapper.SmbItem
Check if the current and the given objects are equals.

F

flush() - Method in class ch.swaechter.smbjwrapper.streams.SmbOutputStream

G

getChangeTime() - Method in class ch.swaechter.smbjwrapper.SmbItem
Get the change time of the SMB item.
getCreationTime() - Method in class ch.swaechter.smbjwrapper.SmbItem
Get the creation time of the SMB item.
getDirectories() - Method in class ch.swaechter.smbjwrapper.SmbDirectory
Get all directories of the current directory.
getDiskShare() - Method in class ch.swaechter.smbjwrapper.SmbConnection
Get the disk share to access the server.
getDiskShare() - Method in class ch.swaechter.smbjwrapper.SmbItem
Get the disk share of the SMB connection.
getFiles() - Method in class ch.swaechter.smbjwrapper.SmbDirectory
Get all files of the current directory.
getFileSize() - Method in class ch.swaechter.smbjwrapper.SmbFile
Get the file size of the SMB item.
getInputStream() - Method in class ch.swaechter.smbjwrapper.SmbFile
Get the input stream of the file that can be used to download the file.
getLastAccessTime() - Method in class ch.swaechter.smbjwrapper.SmbItem
Get the last access time of the SMB item.
getLastWriteTime() - Method in class ch.swaechter.smbjwrapper.SmbItem
Get the last write time of the SMB item.
getName() - Method in class ch.swaechter.smbjwrapper.SmbItem
Get the name of the SMB item.
getOutputStream() - Method in class ch.swaechter.smbjwrapper.SmbFile
Get the output stream of the file that can be used to upload content to this file.
getOutputStream(boolean) - Method in class ch.swaechter.smbjwrapper.SmbFile
Get the output stream of the file that can be used to upload and append content to this file.
getParentPath() - Method in class ch.swaechter.smbjwrapper.SmbItem
Get the parent SMB item.
getPath() - Method in class ch.swaechter.smbjwrapper.SmbItem
Get the path of the SMB item.
getRootPath() - Method in class ch.swaechter.smbjwrapper.SmbItem
Get the root SMB item.
getServerName() - Method in class ch.swaechter.smbjwrapper.SmbConnection
Get the server name of the server.
getServerName() - Method in class ch.swaechter.smbjwrapper.SmbItem
Get the server name of the connected server.
getShareName() - Method in class ch.swaechter.smbjwrapper.SmbConnection
Get the share name of the server.
getShareName() - Method in class ch.swaechter.smbjwrapper.SmbItem
Get the share name of the connected server.
getSmbConnection() - Method in class ch.swaechter.smbjwrapper.SmbItem
Get the SMB connection.
getSmbPath() - Method in class ch.swaechter.smbjwrapper.SmbItem
Get the full SMB path including the server, share and path, separated by backslashes.

I

isConnectionAlive() - Method in class ch.swaechter.smbjwrapper.SmbConnection
Check if the connection to the SMB server is alive.
isDirectory() - Method in class ch.swaechter.smbjwrapper.SmbItem
Check if the SMB item is a directory.
isExisting() - Method in class ch.swaechter.smbjwrapper.SmbItem
Check if the SMB item does exist.
isFile() - Method in class ch.swaechter.smbjwrapper.SmbItem
Check if the SMB item is a file.
isHidden() - Method in class ch.swaechter.smbjwrapper.SmbItem
Check if the SMB item is hidden on an SMB level.
isRootPath() - Method in class ch.swaechter.smbjwrapper.SmbItem
Check if the current SMB item is the root SMB item.
isValidSmbItemName(String) - Static method in class ch.swaechter.smbjwrapper.SmbItem
Check if the SMB item name is valid and does not contain some invalid characters
isValidSmbItemName(String) - Static method in class ch.swaechter.smbjwrapper.utils.SmbUtils
Check if the SMB item name is valid and does not contain some invalid characters

L

listItems() - Method in class ch.swaechter.smbjwrapper.SmbDirectory
List all files and directories of the current directory.
listItems(Predicate<SmbItem>, boolean) - Method in class ch.swaechter.smbjwrapper.SmbDirectory
List all files and directories that match the search predicate.
listItems(String, boolean) - Method in class ch.swaechter.smbjwrapper.SmbDirectory
List all files and directories that match the search pattern.

P

PATH_SEPARATOR - Static variable in class ch.swaechter.smbjwrapper.SmbItem
String used to separate paths.

R

read() - Method in class ch.swaechter.smbjwrapper.streams.SmbInputStream
renameTo(String, boolean) - Method in class ch.swaechter.smbjwrapper.SmbDirectory
Rename the current item and return it as newly renamed item.
renameTo(String, boolean) - Method in class ch.swaechter.smbjwrapper.SmbFile
Rename the current item and return it as newly renamed item.
renameTo(String, boolean) - Method in class ch.swaechter.smbjwrapper.SmbItem
Rename the current item and return it as newly renamed item.
ROOT_PATH - Static variable in class ch.swaechter.smbjwrapper.SmbItem
String used to represent the root path.

S

SmbConnection - Class in ch.swaechter.smbjwrapper
This class is responsible for managing the SMB connection and session.
SmbConnection(String, String, AuthenticationContext) - Constructor for class ch.swaechter.smbjwrapper.SmbConnection
Create a new SMB connection to the server with the server name, share name and the authentication context.
SmbConnection(String, String, AuthenticationContext, SmbConfig) - Constructor for class ch.swaechter.smbjwrapper.SmbConnection
Create a new SMB connection like normal, but with the ability to pass a custom smbj SMB configuration.
SmbConnection(String, String, AuthenticationContext, SmbConfig, boolean) - Constructor for class ch.swaechter.smbjwrapper.SmbConnection
Create a new SMB connection like normal, but with the ability to pass a custom smbj SMB configuration and to delay the internal creation of the connection.
SmbDirectory - Class in ch.swaechter.smbjwrapper
This class represents a SMB directory.
SmbDirectory(SmbConnection, String) - Constructor for class ch.swaechter.smbjwrapper.SmbDirectory
Create a new SMB directory based on the SMB connection and the path name.
SmbDirectory(SmbConnection) - Constructor for class ch.swaechter.smbjwrapper.SmbDirectory
Create a new SMB directory based on the SMB connection.
SmbFile - Class in ch.swaechter.smbjwrapper
This class represents a SMB file.
SmbFile(SmbConnection, String) - Constructor for class ch.swaechter.smbjwrapper.SmbFile
Create a new SMB file based on the SMB connection and the path name.
SmbInputStream - Class in ch.swaechter.smbjwrapper.streams
This class represents a decorated input stream that respects the reference counting close mechanism of the file.
SmbInputStream(File) - Constructor for class ch.swaechter.smbjwrapper.streams.SmbInputStream
Create a new decorated input stream that respects the reference counting close mechanism of the file.
SmbItem - Class in ch.swaechter.smbjwrapper
This class provides a common abstracted class that represents a SMB directory/file like node.
SmbItem(SmbConnection, String) - Constructor for class ch.swaechter.smbjwrapper.SmbItem
Create a new abstract SMB item based on the SMB connection and the path name.
SmbOutputStream - Class in ch.swaechter.smbjwrapper.streams
This class represents a decorated output stream that respects the reference counting close mechanism of the file.
SmbOutputStream(File, boolean) - Constructor for class ch.swaechter.smbjwrapper.streams.SmbOutputStream
Create a new decorated output stream that respects the reference counting close mechanism of the file.
SmbUtils - Class in ch.swaechter.smbjwrapper.utils
This class provides some common SMB util methods.
SmbUtils() - Constructor for class ch.swaechter.smbjwrapper.utils.SmbUtils
 

W

write(int) - Method in class ch.swaechter.smbjwrapper.streams.SmbOutputStream
Write a single value to the SMB file.
write(byte[]) - Method in class ch.swaechter.smbjwrapper.streams.SmbOutputStream
Write a byte buffer to the SMB file.
write(byte[], int, int) - Method in class ch.swaechter.smbjwrapper.streams.SmbOutputStream
Write a byte buffer to the SMB file at a given offset with a given size.
B C D E F G I L P R S W 
Skip navigation links

Copyright © 2022. All rights reserved.