]>
Dogcows Code - chaz/p5-File-KDBX/blob - Loader/Raw.pm
1 package File
::KDBX
::Loader
::Raw
;
2 # ABSTRACT: A no-op loader that doesn't do any parsing
7 use parent
'File::KDBX::Loader';
9 our $VERSION = '999.999'; # VERSION
15 $self->_read_body($fh);
22 $self->_read_inner_body($fh);
25 sub _read_inner_body
{
29 my $content = do { local $/; <$fh> };
30 $self->kdbx->raw($content);
38 use File::KDBX::Loader;
40 my $kdbx = File::KDBX::Loader->load_file('file.kdbx', $key, inner_format => 'Raw');
45 A typical KDBX file is made up of an outer section (with headers) and an inner section (with the body). The
46 inner section is usually loaded using L<File::KDBX::Loader::XML>, but you can use the
47 B<File::KDBX::Loader::Raw> loader to not parse the body at all and just get the raw body content. This can be
48 useful for debugging or creating KDBX files with arbitrary content (see L<File::KDBX::Dumper::Raw>).
This page took 0.036076 seconds and 4 git commands to generate.