📄 unkrecord.java
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -