FileDocCategorySizeDatePackage
NetShareEnumResponse.javaAPI DocJCIFS 1.3.17 API3197Tue Oct 18 15:26:24 BST 2011jcifs.smb

NetShareEnumResponse

public class NetShareEnumResponse extends SmbComTransactionResponse

Fields Summary
private int
converter
private int
totalAvailableEntries
Constructors Summary
NetShareEnumResponse()

    
Methods Summary
intreadDataWireFormat(byte[] buffer, int bufferIndex, int len)

        int start = bufferIndex;
        SmbShareInfo e;

        useUnicode = false;

        results = new SmbShareInfo[numEntries];
        for( int i = 0; i < numEntries; i++ ) {
            results[i] = e = new SmbShareInfo();
            e.netName = readString( buffer, bufferIndex, 13, false );
            bufferIndex += 14;
            e.type = readInt2( buffer, bufferIndex );
            bufferIndex += 2;
            int off = readInt4( buffer, bufferIndex );
            bufferIndex += 4;
            off = ( off & 0xFFFF ) - converter;
            off = start + off;
            e.remark = readString( buffer, off, 128, false );

            if (log.level >= 4)
                log.println( e );
        }

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

        int start = bufferIndex;

        status = readInt2( buffer, bufferIndex );
        bufferIndex += 2;
        converter = readInt2( buffer, bufferIndex );
        bufferIndex += 2;
        numEntries = readInt2( buffer, bufferIndex );
        bufferIndex += 2;
        totalAvailableEntries = readInt2( buffer, bufferIndex );
        bufferIndex += 2;

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

        return 0;
    
public java.lang.StringtoString()

        return new String( "NetShareEnumResponse[" +
                super.toString() +
                ",status=" + status +
                ",converter=" + converter +
                ",entriesReturned=" + numEntries +
                ",totalAvailableEntries=" + totalAvailableEntries + "]" );
    
intwriteDataWireFormat(byte[] dst, int dstIndex)

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

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

        return 0;