NAME
DNS::Zone::File - Abstract file class
SYNOPSIS
use DNS::Zone::File;
my $file = new DNS::Zone::File( 'type' => 'default', 'zone' => $zone_name_string, 'file' => $file_name_string );
# Parse an existing zonefile $file->parse(); $file->parse($other_file_name_string);
# Dump data to existing or new file $file->dump(); $file->dump($other_file_name_string);
# Get DNS::Zone object my $zone = $file->zone();
ABSTRACT
This abstract class represents the interface to specific configuration file adaptor classes.
DESCRIPTION
An adaptor class for a specific configuration file encapsulates the logic required for writing (dump) and reading (parse) the configuration of a certain name service daemon implementation.
To provide a common interface to all those adaptors already available and probably upcoming, this abstract class declares the methods required.
This class is also a factory which shields the concrete adaptor class from its user by the use of a type map which maps a keyword to an implementation class that has to be a subclass of this abstract class.
AUTHOR
Copyright (C)2001-2003 Andy Wolf. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Please address bug reports and comments to: zonemaster@users.sourceforge.net