pub struct DDEXParser { /* private fields */ }
Expand description
Main DDEX Parser
Implementations§
Source§impl DDEXParser
impl DDEXParser
Sourcepub fn with_config(config: SecurityConfig) -> Self
pub fn with_config(config: SecurityConfig) -> Self
Create parser with custom security configuration
Sourcepub fn parse<R: BufRead + Seek>(
&mut self,
reader: R,
) -> Result<ParsedERNMessage, ParseError>
pub fn parse<R: BufRead + Seek>( &mut self, reader: R, ) -> Result<ParsedERNMessage, ParseError>
Parse DDEX XML from a reader
Sourcepub fn parse_with_options<R: BufRead + Seek>(
&mut self,
reader: R,
options: ParseOptions,
) -> Result<ParsedERNMessage, ParseError>
pub fn parse_with_options<R: BufRead + Seek>( &mut self, reader: R, options: ParseOptions, ) -> Result<ParsedERNMessage, ParseError>
Parse with options
Sourcepub fn stream<R: BufRead>(&self, reader: R) -> WorkingStreamIterator<R> ⓘ
pub fn stream<R: BufRead>(&self, reader: R) -> WorkingStreamIterator<R> ⓘ
Stream parse for large files using new streaming implementation
Sourcepub fn stream_with_version_detection<R: BufRead + Seek>(
&self,
reader: R,
) -> Result<WorkingStreamIterator<R>, ParseError>
pub fn stream_with_version_detection<R: BufRead + Seek>( &self, reader: R, ) -> Result<WorkingStreamIterator<R>, ParseError>
Stream parse with version detection (consumes some input to detect version)
Sourcepub fn stream_parallel<R: BufRead>(
&self,
reader: R,
) -> ParallelStreamingIterator<R> ⓘ
pub fn stream_parallel<R: BufRead>( &self, reader: R, ) -> ParallelStreamingIterator<R> ⓘ
Multi-core parallel streaming parser for maximum throughput (target: 280+ MB/s)
Sourcepub fn stream_parallel_with_threads<R: BufRead>(
&self,
reader: R,
threads: usize,
) -> ParallelStreamingIterator<R> ⓘ
pub fn stream_parallel_with_threads<R: BufRead>( &self, reader: R, threads: usize, ) -> ParallelStreamingIterator<R> ⓘ
Parallel streaming with custom thread count
Sourcepub fn stream_parallel_with_version_detection<R: BufRead + Seek>(
&self,
reader: R,
) -> Result<ParallelStreamingIterator<R>, ParseError>
pub fn stream_parallel_with_version_detection<R: BufRead + Seek>( &self, reader: R, ) -> Result<ParallelStreamingIterator<R>, ParseError>
Parallel streaming with version detection
Sourcepub fn parse_fast_streaming<R: BufRead>(
&mut self,
reader: R,
) -> Result<ParsedERNMessage, ParseError>
pub fn parse_fast_streaming<R: BufRead>( &mut self, reader: R, ) -> Result<ParsedERNMessage, ParseError>
Parse using the fast streaming parser for maximum performance
Sourcepub fn detect_version<R: BufRead>(
&self,
reader: R,
) -> Result<ERNVersion, ParseError>
pub fn detect_version<R: BufRead>( &self, reader: R, ) -> Result<ERNVersion, ParseError>
Detect DDEX version from XML
Sourcepub fn sanity_check<R: BufRead>(
&self,
_reader: R,
) -> Result<SanityCheckResult, ParseError>
pub fn sanity_check<R: BufRead>( &self, _reader: R, ) -> Result<SanityCheckResult, ParseError>
Perform sanity check on DDEX XML
Trait Implementations§
Source§impl Clone for DDEXParser
impl Clone for DDEXParser
Source§fn clone(&self) -> DDEXParser
fn clone(&self) -> DDEXParser
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DDEXParser
impl Debug for DDEXParser
Auto Trait Implementations§
impl Freeze for DDEXParser
impl RefUnwindSafe for DDEXParser
impl Send for DDEXParser
impl Sync for DDEXParser
impl Unpin for DDEXParser
impl UnwindSafe for DDEXParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more