| java.lang.Object org.apache.harmony.jndi.provider.dns.QuestionRecord
QuestionRecord | public class QuestionRecord (Code) | | Represents domain protocol Question Record
See Also: RFC See Also: 1035 |
QuestionRecord | public QuestionRecord()(Code) | | Empty constructor
|
QuestionRecord | public QuestionRecord(String qName, int qType, int qClass)(Code) | | Constructs new question record with given parameters
Parameters: qName - domain name Parameters: qType - question record type Parameters: qClass - question record class |
getQClass | public int getQClass()(Code) | | Returns the qClass. |
getQType | public int getQType()(Code) | | Returns the qType. |
parseRecord | public static int parseRecord(byte[] mesBytes, int startIdx, QuestionRecord resultQR) throws DomainProtocolException(Code) | | Parses given sequence of bytes and constructs a question record from it.
Parameters: mesBytes - the byte array that should be parsed Parameters: startIdx - an index of mesBytes array to start the parsingat Parameters: resultQR - an object the result of the operation will be stored into updated index of mesBytes array throws: DomainProtocolException - if something went wrong |
setQClass | public void setQClass(int class1)(Code) | | Parameters: class1 - The qClass to set. |
setQName | public void setQName(String name)(Code) | | Parameters: name - The qName to set. |
setQType | public void setQType(int type)(Code) | | Parameters: type - The qType to set. |
writeBytes | public int writeBytes(byte[] buffer, int startIdx) throws DomainProtocolException(Code) | | Creates a sequence of bytes that represents the current question record.
Parameters: buffer - the buffer in which the result byte sequence will be written Parameters: startIdx - the index in the buffer to start at updated index of the buffer array |
|
|