public class SpaceField extends NullField
Constructor and Description |
---|
SpaceField()
Default constructor (outputs a single space).
|
SpaceField(decimal num)
Constructor for an explicit number of spaces.
|
SpaceField(double num)
Constructor for an explicit number of spaces.
|
SpaceField(int num)
Constructor for an explicit number of spaces.
|
SpaceField(int64 num)
Constructor for an explicit number of spaces.
|
Modifier and Type | Method and Description |
---|---|
void |
output(Stream out)
Renders the contained field definition to the given stream.
|
getNum, isExplicit, readExternal, resolveData, setExplicit, setNum, writeExternal
toArray
public SpaceField()
public SpaceField(int num)
num
is too large to be
stored on short, it will be truncated automatically to 16 bits.num
- The number of spaces to output.public SpaceField(int64 num)
num
is too large to be
stored on short, it will be truncated automatically to 16 bits.num
- The number of spaces to output.public SpaceField(double num)
num
is too large to be
stored on short, it will be truncated automatically to 16 bits.num
- The number of spaces to output.public SpaceField(decimal num)
num
is too large to be
stored on short, it will be truncated automatically to 16 bits.num
- The number of spaces to output.public void output(Stream out) throws ErrorConditionException
output
in class NullField
out
- The stream to which the field should be rendered.ErrorConditionException
- On any error during I/O.