FileDocCategorySizeDatePackage
SmbComRename.javaAPI DocJCIFS 1.3.17 API2399Tue Oct 18 15:26:24 BST 2011jcifs.smb

SmbComRename

public class SmbComRename extends ServerMessageBlock

Fields Summary
private int
searchAttributes
private String
oldFileName
private String
newFileName
Constructors Summary
SmbComRename(String oldFileName, String newFileName)

        command = SMB_COM_RENAME;
        this.oldFileName = oldFileName;
        this.newFileName = newFileName;
        searchAttributes = ATTR_HIDDEN | ATTR_SYSTEM | ATTR_DIRECTORY;
    
Methods Summary
intreadBytesWireFormat(byte[] buffer, int bufferIndex)

        return 0;
    
intreadParameterWordsWireFormat(byte[] buffer, int bufferIndex)

        return 0;
    
public java.lang.StringtoString()

        return new String( "SmbComRename[" +
            super.toString() +
            ",searchAttributes=0x" + Hexdump.toHexString( searchAttributes, 4 ) +
            ",oldFileName=" + oldFileName +
            ",newFileName=" + newFileName + "]" );
    
intwriteBytesWireFormat(byte[] dst, int dstIndex)

        int start = dstIndex;

        dst[dstIndex++] = (byte)0x04;
        dstIndex += writeString( oldFileName, dst, dstIndex );
        dst[dstIndex++] = (byte)0x04;
        if( useUnicode ) {
            dst[dstIndex++] = (byte)'\0";
        }
        dstIndex += writeString( newFileName, dst, dstIndex );

        return dstIndex - start;
    
intwriteParameterWordsWireFormat(byte[] dst, int dstIndex)

        writeInt2( searchAttributes, dst, dstIndex );
        return 2;