Uses of Class
jcifs.smb.SmbException
Packages that use SmbException
-
Uses of SmbException in jcifs.smb
Subclasses of SmbException in jcifs.smbModifier and TypeClassDescriptionclassTheSmbAuthExceptionencapsulates the variety of authentication related error codes returned by an SMB server.Methods in jcifs.smb with parameters of type SmbExceptionModifier and TypeMethodDescriptionprotected IOExceptionSmbFileInputStream.seToIoe(SmbException se) Methods in jcifs.smb that throw SmbExceptionModifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanSmbFile.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()voidThis method will copy the file or directory represented by this SmbFile and it's sub-contents to the location specified by the dest parameter.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.SmbFile.getDfsPath()If the path of thisSmbFilefalls within a DFS volume, this method will return the referral path to which it maps.longSmbFile.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()byte[]NtlmPasswordAuthentication.getSigningKey(byte[] challenge) intSmbFile.getType()Returns type of of object this SmbFile represents.byte[]NtlmContext.initSecContext(byte[] token, int offset, int len) 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 this SmbFile in bytes.longSmbRandomAccessFile.length()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.voidSmbFile.mkdir()Creates a directory with the path specified by thisSmbFile.voidSmbFile.mkdirs()Creates a directory with the path specified by this SmbFile and any parent directories that do not exist.intSmbRandomAccessFile.read()intSmbRandomAccessFile.read(byte[] b) intSmbRandomAccessFile.read(byte[] b, int off, int len) 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) 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) 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 jcifs.smb that throw SmbExceptionModifierConstructorDescriptionConstruct a SID from it's textual representation such as S-1-5-21-1496946806-2192648263-3843101252-1029.SmbFileInputStream(String url) Creates anInputStreamfor reading bytes from a file on an SMB server addressed by theurlparameter.SmbFileInputStream(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) SmbRandomAccessFile(SmbFile file, String mode)