public byte[] digest() { byte[] b; b = digest.digest(); if( log.level >= 5 ) { log.println( "digest: " ); Hexdump.hexdump( log, b, 0, b.length ); log.flush(); } updates = 0; return b; }
/** * {@inheritDoc} * * @see jcifs.internal.smb2.ServerMessageBlock2#toString() */ @Override public String toString () { return "Smb2OpblockBreakNotification[oplockLevel=" + this.oplockLevel + ",fileId=" + Hexdump.toHexString(this.fileId) + "]"; } }
/** * This is an alternative to the <code>java.lang.Integer.toHexString</cod> * method. It is an efficient relative that also will pad the left side so * that the result is <code>size</code> digits. */ public static String toHexString( int val, int size ) { char[] c = new char[size]; toHexChars( val, c, 0, size ); return new String( c ); } public static String toHexString( long val, int size ) {
@Override public String toString () { String ret = "FileNotifyInformation[nextEntry=" + this.nextEntryOffset + ",action=0x" + Hexdump.toHexString(this.action, 4) + ",file=" + this.fileName + "]"; return ret; } }
public String toString() { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); jcifs.util.Hexdump.hexdump(new PrintStream(byteArrayOutputStream), oid, 0, oid.length); return "{ IPID ref count is " + refcountofIPID + " } and OID in bytes[] " + byteArrayOutputStream.toString() + " , hasExpired " + hasExpired() + " } "; }
public static String toHexString( long val, int size ) { char[] c = new char[size]; toHexChars( val, c, 0, size ); return new String( c ); } public static String toHexString( byte[] src, int srcIndex, int size ) {
static String getResultMessage(int result) { return result < 4 ? result_message[result] : "0x" + jcifs.util.Hexdump.toHexString(result, 4); } public DcerpcException getResult() {
public String toString() { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); jcifs.util.Hexdump.hexdump(new PrintStream(byteArrayOutputStream), oid, 0, oid.length); return "{ IPID ref count is " + refcountofIPID + " } and OID in bytes[] " + byteArrayOutputStream.toString() + " , hasExpired " + hasExpired() + " } "; }
/** * This is an alternative to the <code>java.lang.Integer.toHexString</cod> * method. It is an efficient relative that also will pad the left side so * that the result is <code>size</code> digits. */ public static String toHexString( int val, int size ) { char[] c = new char[size]; toHexChars( val, c, 0, size ); return new String( c ); } public static String toHexString( long val, int size ) {
static String getResultMessage(int result) { return result < 4 ? result_message[result] : "0x" + jcifs.util.Hexdump.toHexString(result, 4); } public DcerpcException getResult() {
@Override public String toString () { final ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream (); jcifs.util.Hexdump.hexdump ( new PrintStream ( byteArrayOutputStream ), this.oid, 0, this.oid.length ); return "{ IPID ref count is " + this.refcountofIPID + " } and OID in bytes[] " + byteArrayOutputStream.toString () + " , hasExpired " + hasExpired () + " } "; }
public static String toHexString( long val, int size ) { char[] c = new char[size]; toHexChars( val, c, 0, size ); return new String( c ); } public static String toHexString( byte[] src, int srcIndex, int size ) {
static String getResultMessage(int result) { return result < 4 ? result_message[result] : "0x" + jcifs.util.Hexdump.toHexString(result, 4); } public DcerpcException getResult() {
public void update( byte[] input, int offset, int len ) { if( log.level >= 5 ) { log.println( "update: " + updates + " " + offset + ":" + len ); Hexdump.hexdump( log, input, offset, Math.min( len, 256 )); log.flush(); } if( len == 0 ) { return; /* CRITICAL */ } digest.update( input, offset, len ); updates++; } public byte[] digest() {
/** * This is an alternative to the <code>java.lang.Integer.toHexString</cod> * method. It is an efficient relative that also will pad the left side so * that the result is <code>size</code> digits. */ public static String toHexString( int val, int size ) { char[] c = new char[size]; toHexChars( val, c, 0, size ); return new String( c ); } public static String toHexString( long val, int size ) {
static String getResultMessage(int result) { return result < 4 ? result_message[result] : "0x" + jcifs.util.Hexdump.toHexString(result, 4); } public DcerpcException getResult() {
public byte[] digest() { byte[] b; b = digest.digest(); if( log.level >= 5 ) { log.println( "digest: " ); Hexdump.hexdump( log, b, 0, b.length ); log.flush(); } updates = 0; return b; }
/** * @param val * @param size * @return hex string */ public static String toHexString ( long val, int size ) { char[] c = new char[size]; toHexChars(val, c, 0, size); return new String(c); }
@Override public String toString () { return new String( "SmbComNTCreateAndX[" + super.toString() + ",flags=0x" + Hexdump.toHexString(this.flags0, 2) + ",rootDirectoryFid=" + this.rootDirectoryFid + ",desiredAccess=0x" + Hexdump.toHexString(this.desiredAccess, 4) + ",allocationSize=" + this.allocationSize + ",extFileAttributes=0x" + Hexdump.toHexString(this.extFileAttributes, 4) + ",shareAccess=0x" + Hexdump.toHexString(this.shareAccess, 4) + ",createDisposition=0x" + Hexdump.toHexString(this.createDisposition, 4) + ",createOptions=0x" + Hexdump.toHexString(this.createOptions, 8) + ",impersonationLevel=0x" + Hexdump.toHexString(this.impersonationLevel, 4) + ",securityFlags=0x" + Hexdump.toHexString(this.securityFlags, 2) + ",name=" + this.path + "]"); }
public byte[] digest() { byte[] b; b = digest.digest(); if( log.level >= 5 ) { log.println( "digest: " ); Hexdump.hexdump( log, b, 0, b.length ); log.flush(); } updates = 0; return b; }