Interface StreamReader
- All Known Implementing Classes:
BarrageStreamReader
public interface StreamReader
Thread safe re-usable reader that converts an InputStreams to BarrageMessages.
-
Method Summary
Modifier and TypeMethodDescriptionsafelyParseFrom
(StreamReaderOptions options, ChunkType[] columnChunkTypes, Class<?>[] columnTypes, Class<?>[] componentTypes, InputStream stream) Converts an InputStream to a BarrageMessage in the context of the provided parameters.
-
Method Details
-
safelyParseFrom
BarrageMessage safelyParseFrom(StreamReaderOptions options, ChunkType[] columnChunkTypes, Class<?>[] columnTypes, Class<?>[] componentTypes, InputStream stream) Converts an InputStream to a BarrageMessage in the context of the provided parameters.- Parameters:
options
- the options related to parsing this messagecolumnChunkTypes
- the types to use for each column chunkcolumnTypes
- the actual type for the columncomponentTypes
- the actual component type for the columnstream
- the input stream that holds the message to be parsed- Returns:
- a BarrageMessage filled out by the stream's payload
-