当前位置: 首页>>代码示例>>Java>>正文


Java Hexdump.toHexString方法代码示例

本文整理汇总了Java中jcifs.util.Hexdump.toHexString方法的典型用法代码示例。如果您正苦于以下问题:Java Hexdump.toHexString方法的具体用法?Java Hexdump.toHexString怎么用?Java Hexdump.toHexString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在jcifs.util.Hexdump的用法示例。


在下文中一共展示了Hexdump.toHexString方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: toString

import jcifs.util.Hexdump; //导入方法依赖的package包/类
public String toString() {
    return new String( super.toString() +
        ",totalParameterCount=" + totalParameterCount +
        ",totalDataCount=" + totalDataCount +
        ",maxParameterCount=" + maxParameterCount +
        ",maxDataCount=" + maxDataCount +
        ",maxSetupCount=" + (int)maxSetupCount +
        ",flags=0x" + Hexdump.toHexString( flags, 2 ) +
        ",timeout=" + timeout +
        ",parameterCount=" + parameterCount +
        ",parameterOffset=" + parameterOffset +
        ",parameterDisplacement=" + parameterDisplacement +
        ",dataCount=" + dataCount +
        ",dataOffset=" + dataOffset +
        ",dataDisplacement=" + dataDisplacement +
        ",setupCount=" + setupCount +
        ",pad=" + pad +
        ",pad1=" + pad1 );
}
 
开发者ID:jaeksoft,项目名称:jcifs-krb5,代码行数:20,代码来源:SmbComTransaction.java

示例2: getMessageByDcerpcError

import jcifs.util.Hexdump; //导入方法依赖的package包/类
static String getMessageByDcerpcError ( int errcode ) {
    int min = 0;
    int max = DCERPC_FAULT_CODES.length;

    while ( max >= min ) {
        int mid = ( min + max ) / 2;

        if ( errcode > DCERPC_FAULT_CODES[ mid ] ) {
            min = mid + 1;
        }
        else if ( errcode < DCERPC_FAULT_CODES[ mid ] ) {
            max = mid - 1;
        }
        else {
            return DCERPC_FAULT_MESSAGES[ mid ];
        }
    }

    return "0x" + Hexdump.toHexString(errcode, 8);
}
 
开发者ID:AgNO3,项目名称:jcifs-ng,代码行数:21,代码来源:DcerpcException.java

示例3: getMessageByWinerrCode

import jcifs.util.Hexdump; //导入方法依赖的package包/类
static String getMessageByWinerrCode ( int errcode ) {
    int min = 0;
    int max = WINERR_CODES.length - 1;

    while ( max >= min ) {
        int mid = ( min + max ) / 2;

        if ( errcode > WINERR_CODES[ mid ] ) {
            min = mid + 1;
        }
        else if ( errcode < WINERR_CODES[ mid ] ) {
            max = mid - 1;
        }
        else {
            return WINERR_MESSAGES[ mid ];
        }
    }

    return "W" + Hexdump.toHexString(errcode, 8);
}
 
开发者ID:AgNO3,项目名称:jcifs-ng,代码行数:21,代码来源:SmbException.java

示例4: toString

import jcifs.util.Hexdump; //导入方法依赖的package包/类
public String toString() {
    return new String( "SmbComNTCreateAndXResponse[" +
        super.toString() +
        ",oplockLevel=" + oplockLevel +
        ",fid=" + fid +
        ",createAction=0x" + Hexdump.toHexString( createAction, 4 ) +
        ",creationTime=" + new Date( creationTime ) +
        ",lastAccessTime=" + new Date( lastAccessTime ) +
        ",lastWriteTime=" + new Date( lastWriteTime ) +
        ",changeTime=" + new Date( changeTime ) +
        ",extFileAttributes=0x" + Hexdump.toHexString( extFileAttributes, 4 ) +
        ",allocationSize=" + allocationSize +
        ",endOfFile=" + endOfFile +
        ",fileType=" + fileType +
        ",deviceState=" + deviceState +
        ",directory=" + directory + "]" );
}
 
开发者ID:jaeksoft,项目名称:jcifs-krb5,代码行数:18,代码来源:SmbComNTCreateAndXResponse.java

示例5: toString

import jcifs.util.Hexdump; //导入方法依赖的package包/类
public String toString() {
    String result = new String( "SmbComTreeConnectAndX[" +
        super.toString() +
        ",disconnectTid=" + disconnectTid +
        ",passwordLength=" + passwordLength +
        ",password=" + Hexdump.toHexString( password, passwordLength, 0 ) +
        ",path=" + path +
        ",service=" + service + "]" );
    return result;
}
 
开发者ID:codelibs,项目名称:jcifs,代码行数:11,代码来源:SmbComTreeConnectAndX.java

示例6: toString

import jcifs.util.Hexdump; //导入方法依赖的package包/类
public String toString() {
    return new String( "SmbComRename[" +
        super.toString() +
        ",searchAttributes=0x" + Hexdump.toHexString( searchAttributes, 4 ) +
        ",oldFileName=" + oldFileName +
        ",newFileName=" + newFileName + "]" );
}
 
开发者ID:jaeksoft,项目名称:jcifs-krb5,代码行数:8,代码来源:SmbComRename.java

示例7: toString

import jcifs.util.Hexdump; //导入方法依赖的package包/类
public String toString() {
    return new String( "SmbQueryFileBasicInfo[" +
        "createTime=" + new Date( createTime ) +
        ",lastAccessTime=" + new Date( lastAccessTime ) +
        ",lastWriteTime=" + new Date( lastWriteTime ) +
        ",changeTime=" + new Date( changeTime ) +
        ",attributes=0x" + Hexdump.toHexString( attributes, 4 ) + "]" );
}
 
开发者ID:codelibs,项目名称:jcifs,代码行数:9,代码来源:Trans2QueryPathInformationResponse.java

示例8: toString

import jcifs.util.Hexdump; //导入方法依赖的package包/类
public String toString() {
    return new String( "SmbComQueryInformationResponse[" +
        super.toString() +
        ",fileAttributes=0x" + Hexdump.toHexString( fileAttributes, 4 ) +
        ",lastWriteTime=" + new Date( lastWriteTime ) +
        ",fileSize=" + fileSize + "]" );
}
 
开发者ID:IdentityAutomation,项目名称:jcifs-idautopatch,代码行数:8,代码来源:SmbComQueryInformationResponse.java

示例9: toString

import jcifs.util.Hexdump; //导入方法依赖的package包/类
@Override
public String toString () {
    return new String(
        "Trans2FindFirst2[" + super.toString() + ",searchAttributes=0x" + Hexdump.toHexString(this.searchAttributes, 2) + ",searchCount="
                + this.maxItems + ",flags=0x" + Hexdump.toHexString(this.tflags, 2) + ",informationLevel=0x"
                + Hexdump.toHexString(this.informationLevel, 3) + ",searchStorageType=" + this.searchStorageType + ",filename=" + this.path
                + "]");
}
 
开发者ID:AgNO3,项目名称:jcifs-ng,代码行数:9,代码来源:Trans2FindFirst2.java

示例10: toString

import jcifs.util.Hexdump; //导入方法依赖的package包/类
public String toString() {
    return new String( "Trans2QueryFSInformation[" + super.toString() +
        ",informationLevel=0x" + Hexdump.toHexString( informationLevel, 3 ) + "]" );
}
 
开发者ID:codelibs,项目名称:jcifs,代码行数:5,代码来源:Trans2QueryFSInformation.java

示例11: toString

import jcifs.util.Hexdump; //导入方法依赖的package包/类
public String toString() {
    return "NtlmChallenge[challenge=0x" +
            Hexdump.toHexString( challenge, 0, challenge.length * 2 ) +
            ",dc=" + dc.toString() + "]";
}
 
开发者ID:jaeksoft,项目名称:jcifs-krb5,代码行数:6,代码来源:NtlmChallenge.java

示例12: toString

import jcifs.util.Hexdump; //导入方法依赖的package包/类
public String toString() {
    return new String( "SmbComDelete[" +
        super.toString() +
        ",searchAttributes=0x" + Hexdump.toHexString( searchAttributes, 4 ) +
        ",fileName=" + path + "]" );
}
 
开发者ID:IdentityAutomation,项目名称:jcifs-idautopatch,代码行数:7,代码来源:SmbComDelete.java

示例13: toString

import jcifs.util.Hexdump; //导入方法依赖的package包/类
@Override
public String toString () {
    String opCodeString, resultCodeString, questionTypeString, recordTypeString;

    switch ( this.opCode ) {
    case QUERY:
        opCodeString = "QUERY";
        break;
    case WACK:
        opCodeString = "WACK";
        break;
    default:
        opCodeString = Integer.toString(this.opCode);
        break;
    }
    switch ( this.resultCode ) {
    case FMT_ERR:
        resultCodeString = "FMT_ERR";
        break;
    case SRV_ERR:
        resultCodeString = "SRV_ERR";
        break;
    case IMP_ERR:
        resultCodeString = "IMP_ERR";
        break;
    case RFS_ERR:
        resultCodeString = "RFS_ERR";
        break;
    case ACT_ERR:
        resultCodeString = "ACT_ERR";
        break;
    case CFT_ERR:
        resultCodeString = "CFT_ERR";
        break;
    default:
        resultCodeString = "0x" + Hexdump.toHexString(this.resultCode, 1);
        break;
    }
    switch ( this.questionType ) {
    case NB:
        questionTypeString = "NB";
        break;
    case NBSTAT:
        questionTypeString = "NBSTAT";
        break;
    default:
        questionTypeString = "0x" + Hexdump.toHexString(this.questionType, 4);
        break;
    }
    switch ( this.recordType ) {
    case A:
        recordTypeString = "A";
        break;
    case NS:
        recordTypeString = "NS";
        break;
    case NULL:
        recordTypeString = "NULL";
        break;
    case NB:
        recordTypeString = "NB";
        break;
    case NBSTAT:
        recordTypeString = "NBSTAT";
        break;
    default:
        recordTypeString = "0x" + Hexdump.toHexString(this.recordType, 4);
        break;
    }

    return new String(
        "nameTrnId=" + this.nameTrnId + ",isResponse=" + this.isResponse + ",opCode=" + opCodeString + ",isAuthAnswer=" + this.isAuthAnswer
                + ",isTruncated=" + this.isTruncated + ",isRecurAvailable=" + this.isRecurAvailable + ",isRecurDesired=" + this.isRecurDesired
                + ",isBroadcast=" + this.isBroadcast + ",resultCode=" + resultCodeString + ",questionCount=" + this.questionCount
                + ",answerCount=" + this.answerCount + ",authorityCount=" + this.authorityCount + ",additionalCount=" + this.additionalCount
                + ",questionName=" + this.questionName + ",questionType=" + questionTypeString + ",questionClass="
                + ( this.questionClass == IN ? "IN" : "0x" + Hexdump.toHexString(this.questionClass, 4) ) + ",recordName=" + this.recordName
                + ",recordType=" + recordTypeString + ",recordClass="
                + ( this.recordClass == IN ? "IN" : "0x" + Hexdump.toHexString(this.recordClass, 4) ) + ",ttl=" + this.ttl + ",rDataLength="
                + this.rDataLength);
}
 
开发者ID:AgNO3,项目名称:jcifs-ng,代码行数:82,代码来源:NameServicePacket.java

示例14: toString

import jcifs.util.Hexdump; //导入方法依赖的package包/类
public String toString() {
    return new String( "NtTransQuerySecurityDesc[" + super.toString() +
        ",fid=0x" + Hexdump.toHexString( fid, 4 ) +
        ",securityInformation=0x" + Hexdump.toHexString( securityInformation, 8 ) + "]" );
}
 
开发者ID:IdentityAutomation,项目名称:jcifs-idautopatch,代码行数:6,代码来源:NtTransQuerySecurityDesc.java

示例15: toString

import jcifs.util.Hexdump; //导入方法依赖的package包/类
public String toString() {
    return new String( super.toString() +
        ",andxCommand=0x" + Hexdump.toHexString( andxCommand, 2 ) +
        ",andxOffset=" + andxOffset );
}
 
开发者ID:jaeksoft,项目名称:jcifs-krb5,代码行数:6,代码来源:AndXServerMessageBlock.java


注:本文中的jcifs.util.Hexdump.toHexString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。