line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
# ABSTRACT: output encoded data to a stream. |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
use Moo::Role; |
5
|
7
|
|
|
7
|
|
3454
|
|
|
7
|
|
|
|
|
16
|
|
|
7
|
|
|
|
|
40
|
|
6
|
|
|
|
|
|
|
our $VERSION = '1.03'; # TRIAL |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
use namespace::clean; |
9
|
7
|
|
|
7
|
|
2735
|
|
|
7
|
|
|
|
|
16
|
|
|
7
|
|
|
|
|
51
|
|
10
|
|
|
|
|
|
|
with 'Data::Record::Serialize::Role::Sink::Stream'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
0
|
0
|
0
|
with 'Data::Record::Serialize::Role::Sink'; |
19
|
33
|
|
|
33
|
0
|
1757
|
|
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
# |
23
|
|
|
|
|
|
|
# This file is part of Data-Record-Serialize |
24
|
|
|
|
|
|
|
# |
25
|
|
|
|
|
|
|
# This software is Copyright (c) 2017 by Smithsonian Astrophysical Observatory. |
26
|
|
|
|
|
|
|
# |
27
|
|
|
|
|
|
|
# This is free software, licensed under: |
28
|
|
|
|
|
|
|
# |
29
|
|
|
|
|
|
|
# The GNU General Public License, Version 3, June 2007 |
30
|
|
|
|
|
|
|
# |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=pod |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=for :stopwords Diab Jerius Smithsonian Astrophysical Observatory |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 NAME |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Data::Record::Serialize::Sink::stream - output encoded data to a stream. |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 VERSION |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
version 1.03 |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 SYNOPSIS |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
use Data::Record::Serialize; |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
my $s = Data::Record::Serialize->new( sink => 'stream', ... ); |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
$s->send( \%record ); |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 DESCRIPTION |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
B<Data::Record::Serialize::Sink::stream> outputs encoded data to a |
56
|
|
|
|
|
|
|
file handle. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
It performs the L<Data::Record::Serialize::Role::Sink> role. |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=for Pod::Coverage print |
61
|
|
|
|
|
|
|
say |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 INTERFACE |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
The following attributes may be passed to |
66
|
|
|
|
|
|
|
L<Data::Record::Serialize-E<gt>new>|Data::Record::Serialize/new>: |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=over |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=item C<output> |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
The name of an output file or a reference to a scalar to which the records will be written. |
73
|
|
|
|
|
|
|
C<output> may be set to C<-> to indicate output to the standard output stream. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=item C<fh> |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
A file handle. |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=back |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
If neither is specified, output is written to the standard output |
82
|
|
|
|
|
|
|
stream. |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=head1 SUPPORT |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=head2 Bugs |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
Please report any bugs or feature requests to bug-data-record-serialize@rt.cpan.org or through the web interface at: https://rt.cpan.org/Public/Dist/Display.html?Name=Data-Record-Serialize |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head2 Source |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
Source is available at |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
https://gitlab.com/djerius/data-record-serialize |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
and may be cloned from |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
https://gitlab.com/djerius/data-record-serialize.git |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=head1 SEE ALSO |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
Please see those modules/websites for more information related to this module. |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=over 4 |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=item * |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
L<Data::Record::Serialize|Data::Record::Serialize> |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
=back |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=head1 AUTHOR |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
Diab Jerius <djerius@cpan.org> |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
This software is Copyright (c) 2017 by Smithsonian Astrophysical Observatory. |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
This is free software, licensed under: |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
The GNU General Public License, Version 3, June 2007 |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
=cut |