SmbComRenamepublic 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 |
---|
int | readBytesWireFormat(byte[] buffer, int bufferIndex)
return 0;
| int | readParameterWordsWireFormat(byte[] buffer, int bufferIndex)
return 0;
| public java.lang.String | toString()
return new String( "SmbComRename[" +
super.toString() +
",searchAttributes=0x" + Hexdump.toHexString( searchAttributes, 4 ) +
",oldFileName=" + oldFileName +
",newFileName=" + newFileName + "]" );
| int | writeBytesWireFormat(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;
| int | writeParameterWordsWireFormat(byte[] dst, int dstIndex)
writeInt2( searchAttributes, dst, dstIndex );
return 2;
|
|