jcifs.netbios
Class Log

java.lang.Object
  |
  +--jcifs.util.Log
        |
        +--jcifs.netbios.Log

public class Log
extends Log

Provides logging methods specific to the netbios package. Log class members are applied to the Log's mask(set as an arithmetic expression from Log.setMask(int mask)) to "flip on" logging of netbios specific information.

 	Log.setMask( Log.EXCEPTIONS +
 				jcifs.netbios.Log.PACKET_DATA );
 

See the Log parent class for details about this logging style.

Since:
jcifs-0.1
Author:
Michael B. Allen
See Also:
Log

Field Summary
static int ADDRESS_CACHE
          This mask produces the contents of the address cache.
static int PACKET_DATA
          This mask produces limited netbios name service packet information.
static int PACKET_DIAGRAMS
          This mask produces detailed netbios name service packet diagrams like those found in RFC 1002.
 
Fields inherited from class jcifs.util.Log
ALL, DEBUGGING, EXCEPTIONS, HEX_DUMPS, mask, NEWLINE, NEWLINE_LENGTH, NONE, out, WARNINGS
 
Methods inherited from class jcifs.util.Log
getHexString, printHexDump, println, println, println, println, printStackTrace, setDateFormat, setMask, setPrintWriter, setPrintWriter, toHexChars
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PACKET_DATA

public static final int PACKET_DATA
This mask produces limited netbios name service packet information. See RFC 1002 for a detailed description of packet contents and their meaning.

  Mar 13 09:17:04 - name service packet
   angus.mimosa.com/192.168.1.152:137 [62]
   28887  Positive Name Query Response
   authoritative answer,unicast,recursion desired,recursion available
 
See Also:
Log.setMask(int mask)

PACKET_DIAGRAMS

public static final int PACKET_DIAGRAMS
This mask produces detailed netbios name service packet diagrams like those found in RFC 1002.

 Mar 13 09:17:04 - name service packet diagram
                       1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3
   0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |            2                  |0| QUERY |0| |R|0|   |B|  0x0  |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |          0x0001               |           0x0000              |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |          0x0000               |           0x0000              |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |                                                               |
  /  ANGUS<00>                                                    /
  |                                                               |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |          NB (0x0020)          |        IN (0x0001)            |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 
See Also:
Log.setMask(int mask)

ADDRESS_CACHE

public static final int ADDRESS_CACHE
This mask produces the contents of the address cache.
See Also:
NbtConfig.setCachePolicy(int cachePolicy), Log.setMask(int mask)