NAME
MarpaX::ESLIF::JSON::Decoder::RecognizerInterface - MarpaX::ESLIF::JSON Recognizer Interface
VERSION
version 5.0.6
SYNOPSIS
use MarpaX::ESLIF::JSON::Decoder::RecognizerInterface;
my $recognizerInterface = MarpaX::ESLIF::JSON::Decoder::RecognizerInterface->new();
DESCRIPTION
MarpaX::ESLIF::JSON's Decoder Recognizer Interface
SUBROUTINES/METHODS
new($class, $string, $encoding)
Instantiate a new recognizer interface object. Parameters are:
- input
-
The input to parse. Default to the empty string.
- encoding
-
The input's encoding. Can be
undef
.
Required methods
read($self)
Returns a true or a false value, indicating if last read was successful.
isEof($self)
Returns a true or a false value, indicating if end-of-data is reached.
isCharacterStream($self)
Returns a true or a false value, indicating if last read is a stream of characters.
encoding($self)
Returns encoding information.
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.
isWithExhaustion($self)
Returns a true or a false value, indicating if exhaustion event is on or off, respectively.
isWithNewline($self)
Returns a true or a false value, indicating if newline count is on or off, respectively.
isWithTrack($self)
Returns a true or a false value, indicating if absolute position tracking is on or off, respectively.
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.