Uses of Class
org.codelibs.jcifs.smb1.SmbException
Packages that use SmbException
-
Uses of SmbException in org.codelibs.jcifs.smb1
Subclasses of SmbException in org.codelibs.jcifs.smb1Modifier and TypeClassDescriptionclassRepresents a DFS (Distributed File System) referral in SMB1 protocol.classTheSmbAuthExceptionencapsulates the variety of authentication related error codes returned by an SMB server.Methods in org.codelibs.jcifs.smb1 with parameters of type SmbExceptionModifier and TypeMethodDescriptionprotected IOExceptionSmbFileInputStream.seToIoe(SmbException se) Converts an SmbException to an IOException.Methods in org.codelibs.jcifs.smb1 that throw SmbExceptionModifier and TypeMethodDescriptionbooleanbooleanTests whether the specified SMB file should be included in a file list.booleanTests whether the specified filename should be included in a file list.booleanSmbFile.canRead()Tests to see if the file thisSmbFilerepresents can be read.booleanSmbFile.canWrite()Tests to see if the file thisSmbFilerepresents exists and is not marked read-only.voidSmbRandomAccessFile.close()Closes the file and releases any system resources associated with it.voidSmbTransport.connect()Establishes a connection to the SMB server.voidThis method will copy the file or directory represented by thisSmbFileand it's sub-contents to the location specified by thedestparameter.voidSmbFile.createNewFile()Create a new file but fail if it already exists.longSmbFile.createTime()Retrieve the time thisSmbFilewas created.voidSmbFile.delete()This method will delete the file or directory specified by thisSmbFile.booleanSmbFile.exists()Tests to see if the SMB resource exists.intSmbFile.getAttributes()Return the attributes of this file.static byte[]SmbSession.getChallenge(UniAddress dc) Retrieves the NTLM challenge from the specified domain controller.static byte[]SmbSession.getChallenge(UniAddress dc, int port) Retrieves the NTLM challenge from the specified domain controller using the specified port.static NtlmChallengeSmbSession.getChallengeForDomain()Retrieves an NTLM challenge from a domain controller for the configured domain.SmbFile.getDfsPath()Returns the DFS path for this file if it resides in a DFS sharelongSmbFile.getDiskFreeSpace()This method returns the free disk space in bytes of the drive this share represents or the drive on which the directory or file resides.longSmbRandomAccessFile.getFilePointer()Returns the current position of the file pointer.byte[]NtlmPasswordAuthentication.getSigningKey(byte[] challenge) Returns the signing key for SMB signing.intSmbFile.getType()Returns type of of object thisSmbFilerepresents.byte[]NtlmContext.initSecContext(byte[] token, int offset, int len) Initializes the security context with the given token.booleanSmbFile.isDirectory()Tests to see if the file thisSmbFilerepresents is a directory.booleanSmbFile.isFile()Tests to see if the file thisSmbFilerepresents is not a directory.booleanSmbFile.isHidden()Tests to see if the file this SmbFile represents is marked as hidden.longSmbFile.lastModified()Retrieve the last time the file represented by thisSmbFilewas modified.longSmbFile.length()Returns the length of thisSmbFilein bytes.longSmbRandomAccessFile.length()Returns the length of the file.String[]SmbFile.list()List the contents of this SMB resource.String[]SmbFile.list(SmbFilenameFilter filter) List the contents of this SMB resource.SmbFile[]SmbFile.listFiles()List the contents of this SMB resource as an array ofSmbFileobjects.SmbFile[]The CIFS protocol provides for DOS "wildcards" to be used as a performance enhancement.SmbFile[]SmbFile.listFiles(SmbFileFilter filter) List the contents of this SMB resource.SmbFile[]SmbFile.listFiles(SmbFilenameFilter filter) List the contents of this SMB resource.static voidSmbSession.logon(UniAddress dc, int port, NtlmPasswordAuthentication auth) Authenticate arbitrary credentials against the specified domain controller using the specified port.static voidSmbSession.logon(UniAddress dc, NtlmPasswordAuthentication auth) Authenticate arbitrary credentials represented by theNtlmPasswordAuthenticationobject against the domain controller specified by theUniAddressparameter.voidSmbFile.mkdir()Creates a directory with the path specified by thisSmbFile.voidSmbFile.mkdirs()Creates a directory with the path specified by thisSmbFileand any parent directories that do not exist.intSmbRandomAccessFile.read()Reads a single byte from the file at the current file pointer position.intSmbRandomAccessFile.read(byte[] b) Reads bytes from the file into the specified byte array.intSmbRandomAccessFile.read(byte[] b, int off, int len) Reads up to len bytes from the file into the specified byte array.final booleanSmbRandomAccessFile.readBoolean()final byteSmbRandomAccessFile.readByte()final charSmbRandomAccessFile.readChar()final doubleSmbRandomAccessFile.readDouble()final floatSmbRandomAccessFile.readFloat()final voidSmbRandomAccessFile.readFully(byte[] b) final voidSmbRandomAccessFile.readFully(byte[] b, int off, int len) final intSmbRandomAccessFile.readInt()final StringSmbRandomAccessFile.readLine()final longSmbRandomAccessFile.readLong()final shortSmbRandomAccessFile.readShort()final intSmbRandomAccessFile.readUnsignedByte()final intSmbRandomAccessFile.readUnsignedShort()final StringSmbRandomAccessFile.readUTF()voidChanges the name of the file thisSmbFilerepresents to the name designated by theSmbFileargument.voidSmbRandomAccessFile.seek(long pos) Sets the file pointer to the specified position.voidSmbFile.setAttributes(int attrs) Set the attributes of this file.voidSmbFile.setCreateTime(long time) Set the create time of the file.voidSmbFile.setLastModified(long time) Set the last modified time of the file.voidSmbRandomAccessFile.setLength(long newLength) Sets the length of the file.voidSmbFile.setReadOnly()Make this file read-only.voidSmbFile.setReadWrite()Turn off the read-only attribute of this file.intSmbRandomAccessFile.skipBytes(int n) voidSmbRandomAccessFile.write(byte[] b) voidSmbRandomAccessFile.write(byte[] b, int off, int len) voidSmbRandomAccessFile.write(int b) final voidSmbRandomAccessFile.writeBoolean(boolean v) final voidSmbRandomAccessFile.writeByte(int v) final voidSmbRandomAccessFile.writeBytes(String s) final voidSmbRandomAccessFile.writeChar(int v) final voidSmbRandomAccessFile.writeChars(String s) final voidSmbRandomAccessFile.writeDouble(double v) final voidSmbRandomAccessFile.writeFloat(float v) final voidSmbRandomAccessFile.writeInt(int v) final voidSmbRandomAccessFile.writeLong(long v) final voidSmbRandomAccessFile.writeShort(int v) final voidConstructors in org.codelibs.jcifs.smb1 that throw SmbExceptionModifierConstructorDescriptionConstruct a SID from it's textual representation such asS-1-5-21-1496946806-2192648263-3843101252-1029.SigningDigest(byte[] macSigningKey, boolean bypass) Constructs a new signing digest with the specified MAC signing key.SigningDigest(SmbTransport transport, NtlmPasswordAuthentication auth) Constructs a new signing digest using transport and authentication credentials.SmbFileInputStream(String url) Creates an input stream for reading from the specified SMB URLSmbFileInputStream(SmbFile file) Creates anInputStreamfor reading bytes from a file on an SMB server represented by theSmbFileparameter.Creates anOutputStreamfor writing to a file on an SMB server addressed by the URL parameter.SmbFileOutputStream(String url, boolean append) Creates anOutputStreamfor writing bytes to a file on an SMB server addressed by the URL parameter.SmbFileOutputStream(String url, int shareAccess) Creates anOutputStreamfor writing bytes to a file on an SMB server addressed by theSmbFileparameter.SmbFileOutputStream(SmbFile file) Creates anOutputStreamfor writing bytes to a file on an SMB server represented by theSmbFileparameter.SmbFileOutputStream(SmbFile file, boolean append) Creates anOutputStreamfor writing bytes to a file on an SMB server addressed by theSmbFileparameter.SmbRandomAccessFile(String url, String mode, int shareAccess) Constructs an SmbRandomAccessFile with the specified URL, mode, and share access flags.SmbRandomAccessFile(SmbFile file, String mode) Constructs an SmbRandomAccessFile from an existing SmbFile with the specified access mode.