public MXRecord( Name _name, short _dclass, int _ttl, int length, DataByteInputStream in, Compression c) throws IOException { super(_name, Type.MX, _dclass, _ttl); if (in == null) return; priority = (short) in.readUnsignedShort(); target = new Name(in, c); }
protected static Record rrFromWire(SIGBase rec, int length, DataByteInputStream in) throws IOException { if (in == null) return rec; int start = in.getPos(); rec.covered = in.readUnsignedShort(); rec.alg = in.readByte(); rec.labels = in.readByte(); rec.origttl = in.readUnsignedInt(); rec.expire = new Date(1000 * (long) in.readInt()); rec.timeSigned = new Date(1000 * (long) in.readInt()); rec.footprint = in.readShort(); rec.signer = new Name(in); rec.signature = new byte[length - (in.getPos() - start)]; in.read(rec.signature); return rec; }