Trans2SetFileInformationpublic class Trans2SetFileInformation extends SmbComTransaction
Fields Summary |
---|
static final int | SMB_FILE_BASIC_INFO | private int | fid | private int | attributes | private long | createTime | private long | lastWriteTime |
Constructors Summary |
---|
Trans2SetFileInformation(int fid, int attributes, long createTime, long lastWriteTime)
this.fid = fid;
this.attributes = attributes;
this.createTime = createTime;
this.lastWriteTime = lastWriteTime;
command = SMB_COM_TRANSACTION2;
subCommand = TRANS2_SET_FILE_INFORMATION;
maxParameterCount = 6;
maxDataCount = 0;
maxSetupCount = (byte)0x00;
|
Methods Summary |
---|
int | readDataWireFormat(byte[] buffer, int bufferIndex, int len)
return 0;
| int | readParametersWireFormat(byte[] buffer, int bufferIndex, int len)
return 0;
| int | readSetupWireFormat(byte[] buffer, int bufferIndex, int len)
return 0;
| public java.lang.String | toString()
return new String( "Trans2SetFileInformation[" + super.toString() +
",fid=" + fid + "]" );
| int | writeDataWireFormat(byte[] dst, int dstIndex)
int start = dstIndex;
writeTime( createTime, dst, dstIndex ); dstIndex += 8;
writeInt8( 0L, dst, dstIndex ); dstIndex += 8;
writeTime( lastWriteTime, dst, dstIndex ); dstIndex += 8;
writeInt8( 0L, dst, dstIndex ); dstIndex += 8;
/* Samba 2.2.7 needs ATTR_NORMAL
*/
writeInt2( 0x80 | attributes, dst, dstIndex ); dstIndex += 2;
/* 6 zeros observed with NT */
writeInt8( 0L, dst, dstIndex ); dstIndex += 6;
/* Also observed 4 byte alignment but we stick
* with the default for jCIFS which is 2 */
return dstIndex - start;
| int | writeParametersWireFormat(byte[] dst, int dstIndex)
int start = dstIndex;
writeInt2( fid, dst, dstIndex );
dstIndex += 2;
writeInt2( SMB_FILE_BASIC_INFO, dst, dstIndex );
dstIndex += 2;
writeInt2( 0, dst, dstIndex );
dstIndex += 2;
return dstIndex - start;
| int | writeSetupWireFormat(byte[] dst, int dstIndex)
dst[dstIndex++] = subCommand;
dst[dstIndex++] = (byte)0x00;
return 2;
|
|