NAME

MarpaX::ESLIF::ECMA404::RecognizerInterface - MarpaX::ESLIF::ECMA404 Recognizer Interface

VERSION

version 0.004

SYNOPSIS

use MarpaX::ESLIF::ECMA404::RecognizerInterface;

my $recognizerInterface = MarpaX::ESLIF::ECMA404::RecognizerInterface->new();

DESCRIPTION

MarpaX::ESLIF::ECMA404's Recognizer Interface

SUBROUTINES/METHODS

new($class, $string, $encoding)

Instantiate a new recognizer interface object. Argument is the data, following eventually by encoding.

Required methods

read($self)

Returns a true or a false value, indicating if last read was successful. Default is a true value.

isEof($self)

Returns a true or a false value, indicating if end-of-data is reached. Default is a true value.

isCharacterStream($self)

Returns a true or a false value, indicating if last read is a stream of characters. Default is a true value.

encoding($self)

Returns encoding information. Default is undef.

data($self)

Returns last bunch of data. Default is the string passed in the constructor.

isWithDisableThreshold($self)

Returns a true or a false value, indicating if threshold warning is on or off, respectively. Default is a false value.

isWithExhaustion($self)

Returns a true or a false value, indicating if exhaustion event is on or off, respectively. Default is a false value.

isWithNewline($self)

Returns a true or a false value, indicating if newline count is on or off, respectively. Default is a false value.

isWithTrack($self)

Returns a true or a false value, indicating if absolute position tracking is on or off, respectively. Default is a false value.

SEE ALSO

MarpaX::ESLIF::ECMA404

AUTHOR

Jean-Damien Durand <jeandamiendurand@free.fr>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Jean-Damien Durand.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.