]>
Dogcows Code - chaz/p5-File-KDBX/blob - lib/File/KDBX/Loader/Raw.pm
6ac8f3b9265225d15de49b048c2173ade0545ca9
1 package File
::KDBX
::Loader
::Raw
;
2 # ABSTRACT: A no-op loader that doesn't do any parsing
7 use File
::KDBX
::Util
qw(:class);
10 extends
'File::KDBX::Loader';
12 our $VERSION = '0.904'; # VERSION
18 $self->_read_body($fh);
25 $self->_read_inner_body($fh);
28 sub _read_inner_body
{
32 my $content = do { local $/; <$fh> };
33 $self->kdbx->raw($content);
46 File::KDBX::Loader::Raw - A no-op loader that doesn't do any parsing
54 use File::KDBX::Loader;
56 my $kdbx = File::KDBX::Loader->load_file('file.kdbx', $key, inner_format => 'Raw');
61 A typical KDBX file is made up of an outer section (with headers) and an inner section (with the body). The
62 inner section is usually loaded using L<File::KDBX::Loader::XML>, but you can use the
63 B<File::KDBX::Loader::Raw> loader to not parse the body at all and just get the raw body content. This can be
64 useful for debugging or creating KDBX files with arbitrary content (see L<File::KDBX::Dumper::Raw>).
68 Please report any bugs or feature requests on the bugtracker website
69 L<https://github.com/chazmcgarvey/File-KDBX/issues>
71 When submitting a bug or request, please include a test-file or a
72 patch to an existing test-file that illustrates the bug or desired
77 Charles McGarvey <ccm@cpan.org>
79 =head1 COPYRIGHT AND LICENSE
81 This software is copyright (c) 2022 by Charles McGarvey.
83 This is free software; you can redistribute it and/or modify it under
84 the same terms as the Perl 5 programming language system itself.
This page took 0.040159 seconds and 3 git commands to generate.