Data::Stag::Writer man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

Data::Stag::Writer(3) User Contributed Perl DocumentationData::Stag::Writer(3)

NAME
	 Data::Stag::Writer

SYNOPSIS
	 # Abstract class - do not use directly
	 package MyOutputter;
	 use base qw(Data::Stag::Writer);

	 sub e_foo {
	   my ($self, $foo) = @_;
	   $self->writef("data1: %s\n", $foo->get_data1);
	   return;
	 }

DESCRIPTION
       base mixin class for all writers

INHERITANCE
	   This inherits from L<Data::Stag::BaseHandler>

PUBLIC METHODS -
       new

	      Title: new

	       Args: [fn str], [fh FILEHANDLE]
	     Return: L<Data::Stag::BaseHandler>
	    Example: $w = MyWriter->new(-fh=>$fh);

       returns the tree that was built from all uncaught events

       file

	      Title: file

	       Args: filename str
	    Returns: filename str
	    Example: $handler->file("my_output_file.txt");

       Setting this will cause all output to be diverted to this file; the
       file will be overwritten by default. The filehandle will not be opened
       unless any events are thrown

       For more fine-grained control, use $handler->fh()

       fh

	      Title: fh

	       Args: filehandle FH
	    Returns: filehandle FH
	    Example: $handler->fh(\*STDOUT);

       Gets/Sets the output filehandle for the writer

       safe_fh

	      Title: safe_fh
	       Type: PROTECTED

	       Args: filehandle FH
	    Returns: filehandle FH
	    Example: $handler->fh(\*STDOUT);

       As fh(), but makes sure that the filehandle is initialized

       You should use this if you are overriding this class

       write

	      Title: write

	       Type: PROTECTED
	       Args: message str
	    Returns:
	    Example: $self->write($stag->get_blah);

       writes output

       to be used by classes that subclass this one

       writef

	      Title: writef

       As write, analagous to printf

   use_color
	 Usage	 -
	 Returns -
	 Args	 -


perl v5.14.1			  2008-06-03		 Data::Stag::Writer(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net