FileDocCategorySizeDatePackage
SmbComTreeConnectAndXResponse.javaAPI DocJCIFS 1.3.17 API3019Tue Oct 18 15:26:24 BST 2011jcifs.smb

SmbComTreeConnectAndXResponse

public class SmbComTreeConnectAndXResponse extends AndXServerMessageBlock

Fields Summary
private static final int
SMB_SUPPORT_SEARCH_BITS
private static final int
SMB_SHARE_IS_IN_DFS
boolean
supportSearchBits
boolean
shareIsInDfs
String
service
String
nativeFileSystem
Constructors Summary
SmbComTreeConnectAndXResponse(ServerMessageBlock andx)


        
        super( andx );
    
Methods Summary
intreadBytesWireFormat(byte[] buffer, int bufferIndex)

        int start = bufferIndex;

        int len = readStringLength( buffer, bufferIndex, 32 );
        try {
            service = new String( buffer, bufferIndex, len, "ASCII" );
        } catch( UnsupportedEncodingException uee ) {
            return 0;
        }
        bufferIndex += len + 1;
        // win98 observed not returning nativeFileSystem
/* Problems here with iSeries returning ASCII even though useUnicode = true
 * Fortunately we don't really need nativeFileSystem for anything.
        if( byteCount > bufferIndex - start ) {
            nativeFileSystem = readString( buffer, bufferIndex );
            bufferIndex += stringWireLength( nativeFileSystem, bufferIndex );
        }
*/

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

        supportSearchBits = ( buffer[bufferIndex] & SMB_SUPPORT_SEARCH_BITS ) == SMB_SUPPORT_SEARCH_BITS;
        shareIsInDfs = ( buffer[bufferIndex] & SMB_SHARE_IS_IN_DFS ) == SMB_SHARE_IS_IN_DFS;
        return 2;
    
public java.lang.StringtoString()

        String result = new String( "SmbComTreeConnectAndXResponse[" +
            super.toString() +
            ",supportSearchBits=" + supportSearchBits +
            ",shareIsInDfs=" + shareIsInDfs +
            ",service=" + service +
            ",nativeFileSystem=" + nativeFileSystem + "]" );
        return result;
    
intwriteBytesWireFormat(byte[] dst, int dstIndex)

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

        return 0;