diff options
author | Rene Treffer <treffer@measite.de> | 2014-04-02 22:00:32 +0200 |
---|---|---|
committer | Rene Treffer <treffer@measite.de> | 2014-04-02 22:00:32 +0200 |
commit | 32b27c53e03d3e1f25230efc48610efeab31f9a2 (patch) | |
tree | 89b60b17670b098cbb476b855c8fbe430a2edb80 /src/de/measite/minidns/record/CNAME.java |
Initial commit
Diffstat (limited to 'src/de/measite/minidns/record/CNAME.java')
-rw-r--r-- | src/de/measite/minidns/record/CNAME.java | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/de/measite/minidns/record/CNAME.java b/src/de/measite/minidns/record/CNAME.java new file mode 100644 index 00000000..4657b4a5 --- /dev/null +++ b/src/de/measite/minidns/record/CNAME.java @@ -0,0 +1,44 @@ +package de.measite.minidns.record; + +import java.io.DataInputStream; +import java.io.IOException; + +import de.measite.minidns.Record.TYPE; +import de.measite.minidns.util.NameUtil; + +public class CNAME implements Data { + + protected String name; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + @Override + public byte[] toByteArray() { + // TODO Auto-generated method stub + return null; + } + + @Override + public void parse(DataInputStream dis, byte[] data, int length) + throws IOException + { + this.name = NameUtil.parse(dis, data); + } + + @Override + public TYPE getType() { + return TYPE.CNAME; + } + + @Override + public String toString() { + return "to \"" + name + "\""; + } + +} |