org.nhindirect.config.manager.printers
Class DefaultDNSRecordPrinter

java.lang.Object
  extended by org.nhindirect.config.manager.printers.DefaultDNSRecordPrinter
All Implemented Interfaces:
DNSRecordPrinter

public class DefaultDNSRecordPrinter
extends Object
implements DNSRecordPrinter

Utility class for formatting and outputting the content of DNS records.

Since:
1.0
Author:
Greg Meyer

Constructor Summary
DefaultDNSRecordPrinter()
          Default constructor.
 
Method Summary
 void print(Collection<org.nhind.config.DnsRecord> records)
          Prints the contents of a collection of DNS records.
 void print(org.nhind.config.DnsRecord record)
          Prints the contents of a single DNS records.
 void print(org.nhind.config.DnsRecord[] records)
          Prints the contents of an array of DNS records.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDNSRecordPrinter

public DefaultDNSRecordPrinter()
Default constructor. Create a writer that outputs to system console.

Since:
1.0
Method Detail

print

public void print(Collection<org.nhind.config.DnsRecord> records)
Prints the contents of a collection of DNS records.

Specified by:
print in interface DNSRecordPrinter
Parameters:
records - A collection of DNS records to print.

print

public void print(org.nhind.config.DnsRecord[] records)
Prints the contents of an array of DNS records.

Specified by:
print in interface DNSRecordPrinter
Parameters:
records - An array of DNS records to print.

print

public void print(org.nhind.config.DnsRecord record)
Prints the contents of a single DNS records.

Specified by:
print in interface DNSRecordPrinter
Parameters:
record - DNS records to print.


Copyright © 2015. All Rights Reserved.