FileDocCategorySizeDatePackage
SmbComQueryInformationResponse.javaAPI DocJCIFS 1.3.17 API2683Tue Oct 18 15:26:24 BST 2011jcifs.smb

SmbComQueryInformationResponse

public class SmbComQueryInformationResponse extends ServerMessageBlock implements Info

Fields Summary
private int
fileAttributes
private long
lastWriteTime
private long
serverTimeZoneOffset
private int
fileSize
Constructors Summary
SmbComQueryInformationResponse(long serverTimeZoneOffset)


        
        this.serverTimeZoneOffset = serverTimeZoneOffset;
        command = SMB_COM_QUERY_INFORMATION;
    
Methods Summary
public intgetAttributes()

        return fileAttributes;
    
public longgetCreateTime()

        return lastWriteTime + serverTimeZoneOffset;
    
public longgetLastWriteTime()

        return lastWriteTime + serverTimeZoneOffset;
    
public longgetSize()

        return fileSize;
    
intreadBytesWireFormat(byte[] buffer, int bufferIndex)

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

        if( wordCount == 0 ) {
            return 0;
        }
        fileAttributes = readInt2( buffer, bufferIndex );
        bufferIndex += 2;
        lastWriteTime = readUTime( buffer, bufferIndex );
        bufferIndex += 4;
        fileSize = readInt4( buffer, bufferIndex );
        return 20;
    
public java.lang.StringtoString()

        return new String( "SmbComQueryInformationResponse[" +
            super.toString() +
            ",fileAttributes=0x" + Hexdump.toHexString( fileAttributes, 4 ) +
            ",lastWriteTime=" + new Date( lastWriteTime ) +
            ",fileSize=" + fileSize + "]" );
    
intwriteBytesWireFormat(byte[] dst, int dstIndex)

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

        return 0;