public class NullField extends FieldEntry
| Modifier and Type | Field and Description |
|---|---|
private boolean |
explicit
Contains an explicit column position.
|
private short |
num
An explicit column position.
|
| Constructor and Description |
|---|
NullField()
Default constructor (outputs a single space).
|
NullField(long num)
Constructor for an explicit number of null characters.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
getNum()
Get explicit count.
|
(package private) boolean |
isExplicit()
Get current value of explicit flag.
|
void |
output(Stream out)
Renders the contained field definition to the given stream.
|
void |
readExternal(java.io.ObjectInput in)
Replacement for the default object reading method.
|
void |
resolveData()
Notify instance that it is about to be transferred so all resolvable
data should be resolved and prepared for sending via network.
|
protected void |
setExplicit(boolean explicit)
Set value of explicit flag.
|
protected void |
setNum(long num)
Set explicit count.
|
void |
writeExternal(java.io.ObjectOutput out)
Replacement for the default object writing method.
|
toArrayprivate boolean explicit
private short num
public NullField()
public NullField(long num)
num - The number of null characters to output.public void output(Stream out) throws ErrorConditionException
output in class FieldEntryout - The stream to which the field should be rendered.ErrorConditionExceptionpublic void resolveData()
resolveData in class FieldEntrypublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
in - The input source from which fields will be restored.java.io.IOException - In case of I/O errors.java.lang.ClassNotFoundException - If payload can't be instantiated.public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
out - The output destination to which fields will be saved.java.io.IOException - In case of I/O errors.boolean isExplicit()
int getNum()
protected void setNum(long num)
num - The explicit count.protected void setExplicit(boolean explicit)
explicit - The value of flag.