org.das2.qstream.SerialStreamFormatter
We need a class that can format a stream serially. SimpleStreamFormatter needs the whole dataset, which really
misses the point with QStreams, that you can process and create data streams serially on the server side. The
das2stream codes were first coded with this use case, but QStreams were not and because of this a good serial
generator was never created.
See the main method for an example of how this is used.
Note this class is not thread-safe and assumes that only one thread will be working on the stream. This may change.
DEFAULT_TIME_DIGITS
INOUTFORM_INLINE
INOUTFORM_ONE_RECORD
INOUTFORM_STREAMING
isAsciiTypes
isAsciiTypes( ) → boolean
Returns:
boolean
search for examples
view on GitHub
view source
isBigEndian
isBigEndian( ) → boolean
Returns:
boolean
search for examples
view on GitHub
view source
maybeFormat
maybeFormat( String name, QDataSet ds1, String inoutForm ) → void
format the dataset, maybe sending a descriptor if it hasn't been sent already.
ds1 may be null in this function, in which case nothing needs to be done.
Parameters
name - the name for the dataset of which ds1 is all or a slice of, or null.
ds1 -
inline -
Returns:
void (returns nothing)
search for examples
view on GitHub
view source
retire
retire( String name ) → void
allow the stream to recycle the name. new packets with this name will issue a new packetDescriptor.
Parameters
name -
Returns:
void (returns nothing)
search for examples
view on GitHub
view source
setAsciiTypes
setAsciiTypes( boolean asciiTypes ) → void
Returns:
void (returns nothing)
search for examples
view on GitHub
view source
setBigEndian
setBigEndian( boolean bigEndian ) → void
Returns:
void (returns nothing)
search for examples
view on GitHub
view source
setTransferType
setTransferType( String name, org.das2.qstream.TransferType tt ) → void
explicitly set the transfer type.
Parameters
name -
tt -
Returns:
void (returns nothing)
search for examples
view on GitHub
view source
setUnitTransferType
setUnitTransferType( Units u, org.das2.qstream.TransferType tt ) → void
explicitly set the transfer type used to transfer data that is convertible to this
unit.
Parameters
name -
tt -
Returns:
void (returns nothing)
search for examples
view on GitHub
view source