Class DNSInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--java.io.ByteArrayInputStream
              |
              +--DNSInputStream

public class DNSInputStream
extends java.io.ByteArrayInputStream


Field Summary
protected  java.io.DataInputStream dataIn
           
 
Fields inherited from class java.io.ByteArrayInputStream
buf, count, isClosed, mark, pos
 
Fields inherited from class java.io.InputStream
SKIP_BUFFER_SIZE, skipBuffer
 
Constructor Summary
DNSInputStream(byte[] data, int off, int len)
           
 
Method Summary
 int readByte()
           
 java.lang.String readDomainName()
           
 long readInt()
           
 DNSRR readRR()
           
 int readShort()
           
 java.lang.String readString()
           
 
Methods inherited from class java.io.ByteArrayInputStream
available, close, ensureOpen, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.io.InputStream
read
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

dataIn

protected java.io.DataInputStream dataIn
Constructor Detail

DNSInputStream

public DNSInputStream(byte[] data,
                      int off,
                      int len)
Method Detail

readByte

public int readByte()
             throws java.io.IOException

readShort

public int readShort()
              throws java.io.IOException

readInt

public long readInt()
             throws java.io.IOException

readString

public java.lang.String readString()
                            throws java.io.IOException

readDomainName

public java.lang.String readDomainName()
                                throws java.io.IOException

readRR

public DNSRR readRR()
             throws java.io.IOException