public class InputStreamParser extends BinaryQTPParser
InputStream
in binary QTP format.
It serves as a convenience object that combines input buffer and parser together.
It can be used to read snapshots of data from a file, e.g. the one written with OutputStreamComposer
.
For more advanced file reading capabilities (to read event tapes) see com.devexperts.qd.qtp.file package.OutputStreamComposer
BinaryQTPParser.CorruptedException, BinaryQTPParser.CorruptedMessageException
symbolReader
eventTimeSequence, fieldReplacers, mixedSubscription, readEventTimeSequence, scheme, stats
Constructor and Description |
---|
InputStreamParser(DataScheme scheme)
Creates parser for the specified data scheme.
|
Modifier and Type | Method and Description |
---|---|
void |
init(InputStream input)
Initializes parser with a specified input stream.
|
void |
setInput(com.devexperts.io.BufferedInput input)
Changes input to parse messages from.
|
doAfterMessageBody, doAfterMessageType, doBeforeMessageLength, isSchemeKnown, newRecordMap, parseImpl, readRecordId, readSubscriptionTime, readSymbol, remapRecord, resetSession, resyncOnCorrupted, resyncOnParse, wrapRecordDesc
applyReadAs, getRecordBufferMode, nextRecordsMessage, parse, processPending, readAs, replaceFieldIfNeeded, setEventTimeSequence, setEventTimeSequenceIfNeeded, setFieldReplacers, setMixedSubscription, setReadEventTimeSequence, setStats
public InputStreamParser(DataScheme scheme)
init
this parser before using it.public void setInput(com.devexperts.io.BufferedInput input)
UnsupportedOperationException
.setInput
in class AbstractQTPParser
input
- input to parse messages from.public void init(InputStream input)
Copyright © 2002–2025 Devexperts LLC. All rights reserved.