goog.net.streams.StreamParserProvided Bygoog.net.streams.StreamParserAll Known Implementationsgoog.net.streams.Base64PbStreamParsergoog.net.streams.JsonStreamParsergoog.net.streams.PbJsonStreamParsergoog.net.streams.PbStreamParserThis interface represents a stream parser. VIEW SOURCEInstance Methodsexpand_morethis.acceptsBinaryInput() → booleanParametersNone.ReturnsbooleanTrue if this parser should parse binary(Array or ArrayBuffer) input, otherwise only string input will be accepted. VIEW SOURCEexpand_morethis.getErrorMessage() → (string|null)Checks the error message. ParametersNone.Returns(string|null)any debug info on the first invalid input, or null if the input is still valid. VIEW SOURCEexpand_morethis.isInputValid() → booleanChecks if the parser is aborted due to invalid input. ParametersNone.Returnsbooleantrue if the input is still valid. VIEW SOURCEexpand_morethis.parse( input ) → (Array<(string|Object)>|null)Parse the new input. Note that there is no Parser state to indicate the end of a stream. Parametersinput(string|ArrayBuffer|Array<number>)The input data Returns(Array<(string|Object)>|null)any parsed objects (atomic messages) in an array, or null if more data needs be read to parse any new object. Throws{!Error} if the input is invalid, and the parser will remain invalid once an error has been thrown. VIEW SOURCE