本文整理汇总了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 );
}
示例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);
}
示例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);
}
示例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 + "]" );
}
示例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;
}
示例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 + "]" );
}
示例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 ) + "]" );
}
示例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 + "]" );
}
示例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
+ "]");
}
示例10: toString
import jcifs.util.Hexdump; //导入方法依赖的package包/类
public String toString() {
return new String( "Trans2QueryFSInformation[" + super.toString() +
",informationLevel=0x" + Hexdump.toHexString( informationLevel, 3 ) + "]" );
}
示例11: toString
import jcifs.util.Hexdump; //导入方法依赖的package包/类
public String toString() {
return "NtlmChallenge[challenge=0x" +
Hexdump.toHexString( challenge, 0, challenge.length * 2 ) +
",dc=" + dc.toString() + "]";
}
示例12: toString
import jcifs.util.Hexdump; //导入方法依赖的package包/类
public String toString() {
return new String( "SmbComDelete[" +
super.toString() +
",searchAttributes=0x" + Hexdump.toHexString( searchAttributes, 4 ) +
",fileName=" + path + "]" );
}
示例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);
}
示例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 ) + "]" );
}
示例15: toString
import jcifs.util.Hexdump; //导入方法依赖的package包/类
public String toString() {
return new String( super.toString() +
",andxCommand=0x" + Hexdump.toHexString( andxCommand, 2 ) +
",andxOffset=" + andxOffset );
}