unkrecord.java

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

JAVA
53
字号
// Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)package org.xbill.DNS;import java.io.*;/** * A class implementing Records of unknown and/or unimplemented types.  This * class can only be initialized using static Record initializers. * * @author Brian Wellington */public class UNKRecord extends Record {private byte [] data;UNKRecord() {}RecordgetObject() {	return new UNKRecord();}voidrrFromWire(DNSInput in) throws IOException {	data = in.readByteArray();}voidrdataFromString(Tokenizer st, Name origin) throws IOException {	throw st.exception("invalid unknown RR encoding");}/** Converts this Record to the String "unknown format" */StringrrToString() {	return unknownToString(data);}/** Returns the contents of this record. */public byte []getData() { 	return data;}voidrrToWire(DNSOutput out, Compression c, boolean canonical) {	out.writeByteArray(data);}}

⌨️ 快捷键说明

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