⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 minforecord.java

📁 linux下建立JAVA虚拟机的源码KAFFE
💻 JAVA
字号:
// Copyright (c) 2004 Brian Wellington (bwelling@xbill.org)package org.xbill.DNS;import java.io.*;/** * Mailbox information Record - lists the address responsible for a mailing * list/mailbox and the address to receive error messages relating to the * mailing list/mailbox. * * @author Brian Wellington */public class MINFORecord extends Record {private Name responsibleAddress;private Name errorAddress;MINFORecord() {}RecordgetObject() {	return new MINFORecord();}/** * Creates an MINFO Record from the given data * @param responsibleAddress The address responsible for the * mailing list/mailbox. * @param errorAddress The address to receive error messages relating to the * mailing list/mailbox. */publicMINFORecord(Name name, int dclass, long ttl,	    Name responsibleAddress, Name errorAddress){	super(name, Type.MINFO, dclass, ttl);	this.responsibleAddress = checkName("responsibleAddress",					    responsibleAddress);	this.errorAddress = checkName("errorAddress", errorAddress);}voidrrFromWire(DNSInput in) throws IOException {	responsibleAddress = new Name(in);	errorAddress = new Name(in);}voidrdataFromString(Tokenizer st, Name origin) throws IOException {	responsibleAddress = st.getName(origin);	errorAddress = st.getName(origin);}/** Converts the MINFO Record to a String */StringrrToString() {	StringBuffer sb = new StringBuffer();	sb.append(responsibleAddress);	sb.append(" ");	sb.append(errorAddress);	return sb.toString();}/** Gets the address responsible for the mailing list/mailbox. */public NamegetResponsibleAddress() {	return responsibleAddress;}/** * Gets the address to receive error messages relating to the mailing * list/mailbox. */public NamegetErrorAddress() {	return errorAddress;}voidrrToWire(DNSOutput out, Compression c, boolean canonical) {	responsibleAddress.toWire(out, null, canonical);	errorAddress.toWire(out, null, canonical);}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -