public class SerialStreamFormatter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
asciiTypes |
protected boolean |
bigEndian |
static int |
DEFAULT_TIME_DIGITS |
static java.lang.String |
INOUTFORM_INLINE |
static java.lang.String |
INOUTFORM_ONE_RECORD |
static java.lang.String |
INOUTFORM_STREAMING |
| Constructor and Description |
|---|
SerialStreamFormatter() |
| Modifier and Type | Method and Description |
|---|---|
protected StreamDescriptor |
doStreamDescriptor(java.lang.String name)
send out the streamDescriptor, which contains just the name of the stream's default dataset.
|
void |
format(java.lang.String name,
QDataSet ds1,
java.lang.String inoutForm)
format the dataset which is part of a join dataset.
|
void |
format(java.lang.String joinName,
java.lang.String name,
QDataSet ds1,
java.lang.String inoutForm)
format the dataset, maybe sending a descriptor if it hasn't been sent already.
|
void |
init(java.lang.String name,
StreamHandler sh)
initialize, sending data directly via the StreamHandler interface.
|
void |
init(java.lang.String name,
java.nio.channels.WritableByteChannel out)
the name of the default dataset.
|
boolean |
isAsciiTypes() |
boolean |
isBigEndian() |
void |
join(java.lang.String name,
int rank,
java.util.Map<java.lang.String,java.lang.Object> props) |
static void |
main(java.lang.String[] args) |
void |
maybeFormat(java.lang.String name,
QDataSet ds1,
java.lang.String inoutForm)
format the dataset, maybe sending a descriptor if it hasn't been sent already.
|
void |
retire(java.lang.String name)
allow the stream to recycle the name.
|
void |
setAsciiTypes(boolean asciiTypes) |
void |
setBigEndian(boolean bigEndian) |
void |
setTransferType(java.lang.String name,
TransferType tt)
explicitly set the transfer type.
|
void |
setUnitTransferType(Units u,
TransferType tt)
explicitly set the transfer type used to transfer data that is convertible to this
unit.
|
public static final int DEFAULT_TIME_DIGITS
public static final java.lang.String INOUTFORM_INLINE
public static final java.lang.String INOUTFORM_ONE_RECORD
public static final java.lang.String INOUTFORM_STREAMING
protected boolean asciiTypes
protected boolean bigEndian
public boolean isAsciiTypes()
public void setAsciiTypes(boolean asciiTypes)
public boolean isBigEndian()
public void setBigEndian(boolean bigEndian)
protected StreamDescriptor doStreamDescriptor(java.lang.String name)
name - public void init(java.lang.String name,
java.nio.channels.WritableByteChannel out)
throws java.io.IOException,
StreamException
name - java.io.IOExceptionStreamExceptionpublic void init(java.lang.String name,
StreamHandler sh)
throws java.io.IOException,
StreamException
name - the name of the default dataset.java.io.IOExceptionStreamExceptionpublic void setUnitTransferType(Units u, TransferType tt)
name - tt - public void setTransferType(java.lang.String name,
TransferType tt)
name - tt - public void maybeFormat(java.lang.String name,
QDataSet ds1,
java.lang.String inoutForm)
throws java.io.IOException,
StreamException
name - the name for the dataset of which ds1 is all or a slice of, or null.ds1 - inline - java.io.IOExceptionStreamExceptionpublic void format(java.lang.String joinName,
java.lang.String name,
QDataSet ds1,
java.lang.String inoutForm)
throws java.io.IOException,
StreamException
joinName - the name to which we join the dataset.name - the name for the dataset of which ds1 is all or a slice of, or null.ds1 - inoutForm - one of "inline", "oneRecord", or "streaming"java.io.IOExceptionStreamExceptionpublic void format(java.lang.String name,
QDataSet ds1,
java.lang.String inoutForm)
throws java.io.IOException,
StreamException
name - the name for the dataset of which ds1 is all or a slice of, or null.ds1 - inline - if true, then the entire dataset will be present.java.io.IOExceptionStreamExceptionpublic void join(java.lang.String name,
int rank,
java.util.Map<java.lang.String,java.lang.Object> props)
throws StreamException,
java.io.IOException
StreamExceptionjava.io.IOExceptionpublic void retire(java.lang.String name)
name - public static void main(java.lang.String[] args)
throws java.io.FileNotFoundException,
java.io.IOException,
StreamException
java.io.FileNotFoundExceptionjava.io.IOExceptionStreamException