FileDocCategorySizeDatePackage
Trans2QueryPathInformationResponse.javaAPI DocJCIFS 1.3.17 API5728Tue Oct 18 15:26:24 BST 2011jcifs.smb

Trans2QueryPathInformationResponse

public class Trans2QueryPathInformationResponse extends SmbComTransactionResponse

Fields Summary
static final int
SMB_QUERY_FILE_BASIC_INFO
static final int
SMB_QUERY_FILE_STANDARD_INFO
private int
informationLevel
Info
info
Constructors Summary
Trans2QueryPathInformationResponse(int informationLevel)

        this.informationLevel = informationLevel;
        subCommand = SmbComTransaction.TRANS2_QUERY_PATH_INFORMATION;
    
Methods Summary
intreadDataWireFormat(byte[] buffer, int bufferIndex, int len)

        switch( informationLevel ) {
            case SMB_QUERY_FILE_BASIC_INFO:
                return readSmbQueryFileBasicInfoWireFormat( buffer, bufferIndex );
            case SMB_QUERY_FILE_STANDARD_INFO:
                return readSmbQueryFileStandardInfoWireFormat( buffer, bufferIndex );
            default:
                return 0;
        }
    
intreadParametersWireFormat(byte[] buffer, int bufferIndex, int len)

        // observed two zero bytes here with at least win98
        return 2;
    
intreadSetupWireFormat(byte[] buffer, int bufferIndex, int len)

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

        int start = bufferIndex;

        SmbQueryFileBasicInfo info = new SmbQueryFileBasicInfo();
        info.createTime = readTime( buffer, bufferIndex );
        bufferIndex += 8;
        info.lastAccessTime = readTime( buffer, bufferIndex );
        bufferIndex += 8;
        info.lastWriteTime = readTime( buffer, bufferIndex );
        bufferIndex += 8;
        info.changeTime = readTime( buffer, bufferIndex );
        bufferIndex += 8;
        info.attributes = readInt2( buffer, bufferIndex );
        bufferIndex += 2;
        this.info = info;

        return bufferIndex - start;
    
intreadSmbQueryFileStandardInfoWireFormat(byte[] buffer, int bufferIndex)

        int start = bufferIndex;

        SmbQueryFileStandardInfo info = new SmbQueryFileStandardInfo();
        info.allocationSize = readInt8( buffer, bufferIndex );
        bufferIndex += 8;
        info.endOfFile = readInt8( buffer, bufferIndex );
        bufferIndex += 8;
        info.numberOfLinks = readInt4( buffer, bufferIndex );
        bufferIndex += 4;
        info.deletePending = ( buffer[bufferIndex++] & 0xFF ) > 0;
        info.directory = ( buffer[bufferIndex++] & 0xFF ) > 0;
        this.info = info;

        return bufferIndex - start;
    
public java.lang.StringtoString()

        return new String( "Trans2QueryPathInformationResponse[" +
            super.toString() + "]" );
    
intwriteDataWireFormat(byte[] dst, int dstIndex)

        return 0;
    
intwriteParametersWireFormat(byte[] dst, int dstIndex)

        return 0;
    
intwriteSetupWireFormat(byte[] dst, int dstIndex)

        return 0;