Package emissary.parser
Parsers deal with data ingested into the system and provide memory efficient ways of decomposing it into logical
sessions. The parsers here are fairly simple but provide an important framework for more advanced parsers that live
in other packages.
-
Class Summary Class Description DataByteArraySlicer DataByteBufferSlicer DataIdentifier A simple base class for doing data type identification This simple implementation can only match constant strings against data.DecomposedSession Representation of a fully built session with metadata, header, footer, classification, initial forms, and dataFillingNIOParser Encapsulate the behavior necessary to slide a window through a channel and parse sessions from it. nextChunkOrDie will load the next region.InputSession Detailed session information as it is parsed This class just records offsets and length of various things using lists of PositionRecord.NIOSessionParser Provide a basic NIO-based session parser that reads data in chunks from the underlying channel.ParserFactory Provide a factory for getting the proper type of input parser Provide the implementing classes for that match the configured Data Identifier Engine in PARSER_NIO_IMPL_[type] variants if available.PositionRecord Record offset and length of something in an arraySessionParser Base for all session parsers returned from ParserFactorySessionProducer This class takes a SessionParser and produces data objects from the sessions coming out of the session parser.SimpleNioParser A very simple minded parser implementation that assumes each input channel is one session. -
Exception Summary Exception Description ParserEOFException Exception thrown when parsing has fully completedParserException Exceptions thrown during input parsingParserNextChunkException Exception thrown when parsing needs a new block of data