Trans2FindFirst2public class Trans2FindFirst2 extends SmbComTransaction
Fields Summary |
---|
private static final int | FLAGS_CLOSE_AFTER_THIS_REQUEST | private static final int | FLAGS_CLOSE_IF_END_REACHED | private static final int | FLAGS_RETURN_RESUME_KEYS | private static final int | FLAGS_RESUME_FROM_PREVIOUS_END | private static final int | FLAGS_FIND_WITH_BACKUP_INTENT | private static final int | DEFAULT_LIST_SIZE | private static final int | DEFAULT_LIST_COUNT | private int | searchAttributes | private int | flags | private int | informationLevel | private int | searchStorageType | private String | wildcard | static final int | SMB_INFO_STANDARD | static final int | SMB_INFO_QUERY_EA_SIZE | static final int | SMB_INFO_QUERY_EAS_FROM_LIST | static final int | SMB_FIND_FILE_DIRECTORY_INFO | static final int | SMB_FIND_FILE_FULL_DIRECTORY_INFO | static final int | SMB_FILE_NAMES_INFO | static final int | SMB_FILE_BOTH_DIRECTORY_INFO | static final int | LIST_SIZE | static final int | LIST_COUNT |
Constructors Summary |
---|
Trans2FindFirst2(String filename, String wildcard, int searchAttributes)
if( filename.equals( "\\" )) {
this.path = filename;
} else {
this.path = filename + "\\";
}
this.wildcard = wildcard;
this.searchAttributes = searchAttributes & 0x37; /* generally ignored tho */
command = SMB_COM_TRANSACTION2;
subCommand = TRANS2_FIND_FIRST2;
flags = 0x00;
informationLevel = SMB_FILE_BOTH_DIRECTORY_INFO;
totalDataCount = 0;
maxParameterCount = 10;
maxDataCount = LIST_SIZE;
maxSetupCount = 0;
|
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( "Trans2FindFirst2[" + super.toString() +
",searchAttributes=0x" + Hexdump.toHexString( searchAttributes, 2 ) +
",searchCount=" + LIST_COUNT +
",flags=0x" + Hexdump.toHexString( flags, 2 ) +
",informationLevel=0x" + Hexdump.toHexString( informationLevel, 3 ) +
",searchStorageType=" + searchStorageType +
",filename=" + path + "]" );
| int | writeDataWireFormat(byte[] dst, int dstIndex)
return 0;
| int | writeParametersWireFormat(byte[] dst, int dstIndex)
int start = dstIndex;
writeInt2( searchAttributes, dst, dstIndex );
dstIndex += 2;
writeInt2( LIST_COUNT, dst, dstIndex );
dstIndex += 2;
writeInt2( flags, dst, dstIndex );
dstIndex += 2;
writeInt2( informationLevel, dst, dstIndex );
dstIndex += 2;
writeInt4( searchStorageType, dst, dstIndex );
dstIndex += 4;
dstIndex += writeString( path + wildcard, dst, dstIndex );
return dstIndex - start;
| int | writeSetupWireFormat(byte[] dst, int dstIndex)
dst[dstIndex++] = subCommand;
dst[dstIndex++] = (byte)0x00;
return 2;
|
|