singlenamebase.java

来自「linux下建立JAVA虚拟机的源码KAFFE」· Java 代码 · 共 60 行

JAVA
60
字号
// Copyright (c) 2004 Brian Wellington (bwelling@xbill.org)package org.xbill.DNS;import java.io.*;/** * Implements common functionality for the many record types whose format * is a single name. * * @author Brian Wellington */abstract class SingleNameBase extends Record {protected Name singleName;protectedSingleNameBase() {}protectedSingleNameBase(Name name, int type, int dclass, long ttl) {	super(name, type, dclass, ttl);}protectedSingleNameBase(Name name, int type, int dclass, long ttl, Name singleName,	    String description){	super(name, type, dclass, ttl);	this.singleName = checkName(description, singleName);}voidrrFromWire(DNSInput in) throws IOException {	singleName = new Name(in);}voidrdataFromString(Tokenizer st, Name origin) throws IOException {	singleName = st.getName(origin);}StringrrToString() {	return singleName.toString();}protected NamegetSingleName() {	return singleName;}voidrrToWire(DNSOutput out, Compression c, boolean canonical) {	singleName.toWire(out, null, canonical);}}

⌨️ 快捷键说明

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