public class PutField extends FieldEntry
Modifier and Type | Field and Description |
---|---|
private boolean |
atMode
true if using AT mode, false for TO mode. |
private int |
column
The column to honor in AT or TO mode.
|
private java.util.function.Supplier<BaseDataType> |
data
The data to output to the stream.
|
private java.lang.String |
fmt
The format string to use on output.
|
private boolean |
positional
true to force either AT or TO positional modes. |
private BaseDataType |
savedVar
Resolved variable value.
|
Constructor and Description |
---|
PutField()
Default constructor which is necessary to restores instance when it is
transferred via network.
|
PutField(BaseDataType val)
Append the value to the output buffer with the default type-specific
format string at the current output column.
|
PutField(BaseDataType val,
boolean starts,
int col)
Append the value to the output buffer with the default type-specific
format string at the current output column.
|
PutField(BaseDataType val,
boolean starts,
NumberType col)
Append the value to the output buffer with the default type-specific
format string at the current output column.
|
PutField(BaseDataType val,
java.lang.String fmt)
Append the value to the output buffer with the given type-specific
format string at the current output column.
|
PutField(BaseDataType val,
java.lang.String fmt,
boolean starts,
int col)
Append the value to the output buffer with the given type-specific
format string at the current output column.
|
PutField(BaseDataType val,
java.lang.String fmt,
boolean starts,
NumberType col)
Append the value to the output buffer with the given type-specific
format string at the current output column.
|
PutField(boolean val)
Append the
boolean value to the output buffer with the
default format string of 'yes/no' at the current output column. |
PutField(boolean val,
boolean starts,
int col)
Append the
boolean value to the output buffer with the
default format string of 'yes/no' at the current output column. |
PutField(boolean val,
boolean starts,
NumberType col)
Append the
boolean value to the output buffer with the
default format string of 'yes/no' at the current output column. |
PutField(boolean val,
java.lang.String fmt)
Append the
boolean value to the output buffer with the
given format string at the current output column. |
PutField(boolean val,
java.lang.String fmt,
boolean starts,
int col)
Append the
boolean value to the output buffer with the
given format string at the current output column. |
PutField(boolean val,
java.lang.String fmt,
boolean starts,
NumberType col)
Append the
boolean value to the output buffer with the
given format string at the current output column. |
PutField(double val)
Append the
double value to the output buffer with the
default format string of '->>,>>9.99' at the current output column. |
PutField(double val,
boolean starts,
int col)
Append the
double value to the output buffer with the
default format string of '->>,>>9.99' at the current output column. |
PutField(double val,
boolean starts,
NumberType col)
Append the
double value to the output buffer with the
default format string of '->>,>>9.99' at the current output column. |
PutField(double val,
java.lang.String fmt)
Append the
double value to the output buffer with the
given format string at the current output column. |
PutField(double val,
java.lang.String fmt,
boolean starts,
int col)
Append the
double value to the output buffer with the
given format string at the current output column. |
PutField(double val,
java.lang.String fmt,
boolean starts,
NumberType col)
Append the
double value to the output buffer with the
given format string at the current output column. |
PutField(int val)
Append the
int value to the output buffer with the default
format string of '->,>>>,>>9' at the current output column. |
PutField(int val,
boolean starts,
int col)
Append the
int value to the output buffer with the default
format string of '->,>>>,>>9' at the current output column. |
PutField(int val,
boolean starts,
NumberType col)
Append the
int value to the output buffer with the default
format string of '->,>>>,>>9' at the current output column. |
PutField(int val,
java.lang.String fmt)
Append the
int value to the output buffer with the given
format string at the current output column. |
PutField(int val,
java.lang.String fmt,
boolean starts,
int col)
Append the
int value to the output buffer with the given
format string at the current output column. |
PutField(int val,
java.lang.String fmt,
boolean starts,
NumberType col)
Append the
int value to the output buffer with the given
format string at the current output column. |
PutField(Resolvable val)
Append the value to the output buffer with the default type-specific
format string at the current output column.
|
PutField(Resolvable val,
boolean starts,
int col)
Append the value to the output buffer with the default type-specific
format string at the current output column.
|
PutField(Resolvable val,
boolean starts,
NumberType col)
Append the value to the output buffer with the default type-specific
format string at the current output column.
|
PutField(Resolvable val,
java.lang.String fmt)
Append the value to the output buffer with the given type-specific
format string at the current output column.
|
PutField(Resolvable val,
java.lang.String fmt,
boolean starts,
int col)
Append the value to the output buffer with the given type-specific
format string at the current output column.
|
PutField(Resolvable val,
java.lang.String fmt,
boolean starts,
NumberType col)
Append the value to the output buffer with the given type-specific
format string at the current output column.
|
PutField(java.lang.String val)
Append the
String value to the output buffer with a
format string of 'x(N)' (where N is the length of the value) at the
current output column. |
PutField(java.lang.String val,
boolean starts,
int col)
Append the
String value to the output buffer with the
default format string of 'x(N)' will be used (where N is the length of
the value) at the current output column. |
PutField(java.lang.String val,
boolean starts,
NumberType col)
Append the
String value to the output buffer with the
default format string of 'x(N)' will be used (where N is the length of
the value) at the current output column. |
PutField(java.lang.String val,
java.lang.String fmt)
Append the
String value to the output buffer with the
given format string at the current output column. |
PutField(java.lang.String val,
java.lang.String fmt,
boolean starts,
int col)
Append the
String value to the output buffer with the
given format string at the current output column. |
PutField(java.lang.String val,
java.lang.String fmt,
boolean starts,
NumberType col)
Append the
String value to the output buffer with the
given format string at the current output column. |
PutField(java.util.function.Supplier<BaseDataType> val)
Append the value to the output buffer with the default type-specific
format string at the current output column.
|
PutField(java.util.function.Supplier<BaseDataType> val,
boolean starts,
int col)
Append the value to the output buffer with the default type-specific
format string at the current output column.
|
PutField(java.util.function.Supplier<BaseDataType> val,
boolean starts,
NumberType col)
Append the value to the output buffer with the default type-specific
format string at the current output column.
|
PutField(java.util.function.Supplier<BaseDataType> val,
java.lang.String fmt)
Append the value to the output buffer with the given type-specific
format string at the current output column.
|
PutField(java.util.function.Supplier<BaseDataType> val,
java.lang.String fmt,
boolean starts,
int col)
Append the value to the output buffer with the given type-specific
format string at the current output column.
|
PutField(java.util.function.Supplier<BaseDataType> val,
java.lang.String fmt,
boolean starts,
NumberType col)
Append the value to the output buffer with the given type-specific
format string at the current output column.
|
Modifier and Type | Method and Description |
---|---|
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.
|
void |
writeExternal(java.io.ObjectOutput out)
Replacement for the default object writing method.
|
toArray
private java.util.function.Supplier<BaseDataType> data
private java.lang.String fmt
private boolean positional
true
to force either AT or TO positional modes.private boolean atMode
true
if using AT mode, false
for TO mode.private int column
private BaseDataType savedVar
public PutField()
public PutField(int val)
int
value to the output buffer with the default
format string of '->,>>>,>>9' at the current output column.
Note that this format string works as the display form, which pads on
the left to the full size of the format string. This is different from
the normal operation of toString
.
val
- The data to be output.public PutField(int val, java.lang.String fmt)
int
value to the output buffer with the given
format string at the current output column.
Note that this format string works as the display form, which pads on
the left to the full size of the format string. This is different from
the normal operation of toString
.
val
- The data to be output.fmt
- The format string to use. If null
, the default
'->,>>>,>>9' will be used.public PutField(int val, boolean starts, int col)
int
value to the output buffer with the default
format string of '->,>>>,>>9' at the current output column.
Note that this format string works as the display form, which pads on
the left to the full size of the format string. This is different from
the normal operation of toString
.
val
- The data to be output.starts
- If true
, the output will be placed starting at
the given column (or on the next line at that column, if the
given column is already in use on the current line). If
false
, the output will be placed so that it
ends at the given column (or on the next line at that column,
if the calculated start column is already in use on the
current line).col
- The start or end column (which it is depends on the previous
parameter's value). This is used as a 1-based index into the
current output line.public PutField(int val, java.lang.String fmt, boolean starts, int col)
int
value to the output buffer with the given
format string at the current output column.
Note that this format string works as the display form, which pads on
the left to the full size of the format string. This is different from
the normal operation of toString
.
val
- The data to be output.fmt
- The format string to use. If null
, the default
'->,>>>,>>9' will be used.starts
- If true
, the output will be placed starting at
the given column (or on the next line at that column, if the
given column is already in use on the current line). If
false
, the output will be placed so that it
ends at the given column (or on the next line at that column,
if the calculated start column is already in use on the
current line).col
- The start or end column (which it is depends on the previous
parameter's value). This is used as a 1-based index into the
current output line.public PutField(int val, boolean starts, NumberType col)
int
value to the output buffer with the default
format string of '->,>>>,>>9' at the current output column.
Note that this format string works as the display form, which pads on
the left to the full size of the format string. This is different from
the normal operation of toString
.
val
- The data to be output.starts
- If true
, the output will be placed starting at
the given column (or on the next line at that column, if the
given column is already in use on the current line). If
false
, the output will be placed so that it
ends at the given column (or on the next line at that column,
if the calculated start column is already in use on the
current line).col
- The start or end column (which it is depends on the previous
parameter's value). This is used as a 1-based index into the
current output line.public PutField(int val, java.lang.String fmt, boolean starts, NumberType col)
int
value to the output buffer with the given
format string at the current output column.
Note that this format string works as the display form, which pads on
the left to the full size of the format string. This is different from
the normal operation of toString
.
val
- The data to be output.fmt
- The format string to use. If null
, the default
'->,>>>,>>9' will be used.starts
- If true
, the output will be placed starting at
the given column (or on the next line at that column, if the
given column is already in use on the current line). If
false
, the output will be placed so that it
ends at the given column (or on the next line at that column,
if the calculated start column is already in use on the
current line).col
- The start or end column (which it is depends on the previous
parameter's value). This is used as a 1-based index into the
current output line.public PutField(double val)
double
value to the output buffer with the
default format string of '->>,>>9.99' at the current output column.
Note that this format string works as the display form, which pads on
the left to the full size of the format string. This is different from
the normal operation of toString
.
val
- The data to be output.public PutField(double val, java.lang.String fmt)
double
value to the output buffer with the
given format string at the current output column.
Note that this format string works as the display form, which pads on
the left to the full size of the format string. This is different from
the normal operation of toString
.
val
- The data to be output.fmt
- The format string to use. If null
, the default
'->>,>>9.99' will be used.public PutField(double val, boolean starts, int col)
double
value to the output buffer with the
default format string of '->>,>>9.99' at the current output column.
Note that this format string works as the display form, which pads on
the left to the full size of the format string. This is different from
the normal operation of toString
.
val
- The data to be output.starts
- If true
, the output will be placed starting at
the given column (or on the next line at that column, if the
given column is already in use on the current line). If
false
, the output will be placed so that it
ends at the given column (or on the next line at that column,
if the calculated start column is already in use on the
current line).col
- The start or end column (which it is depends on the previous
parameter's value). This is used as a 1-based index into the
current output line.public PutField(double val, java.lang.String fmt, boolean starts, int col)
double
value to the output buffer with the
given format string at the current output column.
Note that this format string works as the display form, which pads on
the left to the full size of the format string. This is different from
the normal operation of toString
.
val
- The data to be output.fmt
- The format string to use. If null
, the default
'->>,>>9.99' will be used.starts
- If true
, the output will be placed starting at
the given column (or on the next line at that column, if the
given column is already in use on the current line). If
false
, the output will be placed so that it
ends at the given column (or on the next line at that column,
if the calculated start column is already in use on the
current line).col
- The start or end column (which it is depends on the previous
parameter's value). This is used as a 1-based index into the
current output line.public PutField(double val, boolean starts, NumberType col)
double
value to the output buffer with the
default format string of '->>,>>9.99' at the current output column.
Note that this format string works as the display form, which pads on
the left to the full size of the format string. This is different from
the normal operation of toString
.
val
- The data to be output.starts
- If true
, the output will be placed starting at
the given column (or on the next line at that column, if the
given column is already in use on the current line). If
false
, the output will be placed so that it
ends at the given column (or on the next line at that column,
if the calculated start column is already in use on the
current line).col
- The start or end column (which it is depends on the previous
parameter's value). This is used as a 1-based index into the
current output line.public PutField(double val, java.lang.String fmt, boolean starts, NumberType col)
double
value to the output buffer with the
given format string at the current output column.
Note that this format string works as the display form, which pads on
the left to the full size of the format string. This is different from
the normal operation of toString
.
val
- The data to be output.fmt
- The format string to use. If null
, the default
'->>,>>9.99' will be used.starts
- If true
, the output will be placed starting at
the given column (or on the next line at that column, if the
given column is already in use on the current line). If
false
, the output will be placed so that it
ends at the given column (or on the next line at that column,
if the calculated start column is already in use on the
current line).col
- The start or end column (which it is depends on the previous
parameter's value). This is used as a 1-based index into the
current output line.public PutField(boolean val)
boolean
value to the output buffer with the
default format string of 'yes/no' at the current output column.val
- The data to be output.public PutField(boolean val, java.lang.String fmt)
boolean
value to the output buffer with the
given format string at the current output column.val
- The data to be output.fmt
- The format string to use. If null
, the default
'yes/no' will be used.public PutField(boolean val, boolean starts, int col)
boolean
value to the output buffer with the
default format string of 'yes/no' at the current output column.val
- The data to be output.starts
- If true
, the output will be placed starting at
the given column (or on the next line at that column, if the
given column is already in use on the current line). If
false
, the output will be placed so that it
ends at the given column (or on the next line at that column,
if the calculated start column is already in use on the
current line).col
- The start or end column (which it is depends on the previous
parameter's value). This is used as a 1-based index into the
current output line.public PutField(boolean val, java.lang.String fmt, boolean starts, int col)
boolean
value to the output buffer with the
given format string at the current output column.val
- The data to be output.fmt
- The format string to use. If null
, the default
'yes/no' will be used.starts
- If true
, the output will be placed starting at
the given column (or on the next line at that column, if the
given column is already in use on the current line). If
false
, the output will be placed so that it
ends at the given column (or on the next line at that column,
if the calculated start column is already in use on the
current line).col
- The start or end column (which it is depends on the previous
parameter's value). This is used as a 1-based index into the
current output line.public PutField(boolean val, boolean starts, NumberType col)
boolean
value to the output buffer with the
default format string of 'yes/no' at the current output column.val
- The data to be output.starts
- If true
, the output will be placed starting at
the given column (or on the next line at that column, if the
given column is already in use on the current line). If
false
, the output will be placed so that it
ends at the given column (or on the next line at that column,
if the calculated start column is already in use on the
current line).col
- The start or end column (which it is depends on the previous
parameter's value). This is used as a 1-based index into the
current output line.public PutField(boolean val, java.lang.String fmt, boolean starts, NumberType col)
boolean
value to the output buffer with the
given format string at the current output column.val
- The data to be output.fmt
- The format string to use. If null
, the default
'yes/no' will be used.starts
- If true
, the output will be placed starting at
the given column (or on the next line at that column, if the
given column is already in use on the current line). If
false
, the output will be placed so that it
ends at the given column (or on the next line at that column,
if the calculated start column is already in use on the
current line).col
- The start or end column (which it is depends on the previous
parameter's value). This is used as a 1-based index into the
current output line.public PutField(java.lang.String val)
String
value to the output buffer with a
format string of 'x(N)' (where N is the length of the value) at the
current output column.val
- The data to be output.public PutField(java.lang.String val, java.lang.String fmt)
String
value to the output buffer with the
given format string at the current output column.val
- The data to be output.fmt
- The format string to use. If null
, the default
'x(N)' will be used (where N is the length of the value).public PutField(java.lang.String val, boolean starts, int col)
String
value to the output buffer with the
default format string of 'x(N)' will be used (where N is the length of
the value) at the current output column.val
- The data to be output.starts
- If true
, the output will be placed starting at
the given column (or on the next line at that column, if the
given column is already in use on the current line). If
false
, the output will be placed so that it
ends at the given column (or on the next line at that column,
if the calculated start column is already in use on the
current line).col
- The start or end column (which it is depends on the previous
parameter's value). This is used as a 1-based index into the
current output line.public PutField(java.lang.String val, java.lang.String fmt, boolean starts, int col)
String
value to the output buffer with the
given format string at the current output column.val
- The data to be output.fmt
- The format string to use. If null
, the default
'x(N)' will be used (where N is the length of the value) will
be used.starts
- If true
, the output will be placed starting at
the given column (or on the next line at that column, if the
given column is already in use on the current line). If
false
, the output will be placed so that it
ends at the given column (or on the next line at that column,
if the calculated start column is already in use on the
current line).col
- The start or end column (which it is depends on the previous
parameter's value). This is used as a 1-based index into the
current output line.public PutField(java.lang.String val, boolean starts, NumberType col)
String
value to the output buffer with the
default format string of 'x(N)' will be used (where N is the length of
the value) at the current output column.val
- The data to be output.starts
- If true
, the output will be placed starting at
the given column (or on the next line at that column, if the
given column is already in use on the current line). If
false
, the output will be placed so that it
ends at the given column (or on the next line at that column,
if the calculated start column is already in use on the
current line).col
- The start or end column (which it is depends on the previous
parameter's value). This is used as a 1-based index into the
current output line.public PutField(java.lang.String val, java.lang.String fmt, boolean starts, NumberType col)
String
value to the output buffer with the
given format string at the current output column.val
- The data to be output.fmt
- The format string to use. If null
, the default
'x(N)' will be used (where N is the length of the value) will
be used.starts
- If true
, the output will be placed starting at
the given column (or on the next line at that column, if the
given column is already in use on the current line). If
false
, the output will be placed so that it
ends at the given column (or on the next line at that column,
if the calculated start column is already in use on the
current line).col
- The start or end column (which it is depends on the previous
parameter's value). This is used as a 1-based index into the
current output line.public PutField(BaseDataType val)
val
- The data to be output.public PutField(Resolvable val)
val
- The data to be output.public PutField(java.util.function.Supplier<BaseDataType> val)
val
- The function which supplies the value to be output.public PutField(BaseDataType val, java.lang.String fmt)
val
- The data to be output.fmt
- The format string to use. If null
, the default
type-specific format will be used.public PutField(Resolvable val, java.lang.String fmt)
val
- The data to be output.fmt
- The format string to use. If null
, the default
type-specific format will be used.public PutField(java.util.function.Supplier<BaseDataType> val, java.lang.String fmt)
val
- The function which supplies the value to be output.fmt
- The format string to use. If null
, the default
type-specific format will be used.public PutField(BaseDataType val, boolean starts, int col)
val
- The data to be output.starts
- If true
, the output will be placed starting at
the given column (or on the next line at that column, if the
given column is already in use on the current line). If
false
, the output will be placed so that it
ends at the given column (or on the next line at that column,
if the calculated start column is already in use on the
current line).col
- The start or end column (which it is depends on the previous
parameter's value). This is used as a 1-based index into the
current output line.public PutField(Resolvable val, boolean starts, int col)
val
- The data to be output.starts
- If true
, the output will be placed starting at
the given column (or on the next line at that column, if the
given column is already in use on the current line). If
false
, the output will be placed so that it
ends at the given column (or on the next line at that column,
if the calculated start column is already in use on the
current line).col
- The start or end column (which it is depends on the previous
parameter's value). This is used as a 1-based index into the
current output line.public PutField(java.util.function.Supplier<BaseDataType> val, boolean starts, int col)
val
- The function which supplies the value to be output.starts
- If true
, the output will be placed starting at
the given column (or on the next line at that column, if the
given column is already in use on the current line). If
false
, the output will be placed so that it
ends at the given column (or on the next line at that column,
if the calculated start column is already in use on the
current line).col
- The start or end column (which it is depends on the previous
parameter's value). This is used as a 1-based index into the
current output line.public PutField(BaseDataType val, boolean starts, NumberType col)
val
- The data to be output.starts
- If true
, the output will be placed starting at
the given column (or on the next line at that column, if the
given column is already in use on the current line). If
false
, the output will be placed so that it
ends at the given column (or on the next line at that column,
if the calculated start column is already in use on the
current line).col
- The start or end column (which it is depends on the previous
parameter's value). This is used as a 1-based index into the
current output line.public PutField(Resolvable val, boolean starts, NumberType col)
val
- The data to be output.starts
- If true
, the output will be placed starting at
the given column (or on the next line at that column, if the
given column is already in use on the current line). If
false
, the output will be placed so that it
ends at the given column (or on the next line at that column,
if the calculated start column is already in use on the
current line).col
- The start or end column (which it is depends on the previous
parameter's value). This is used as a 1-based index into the
current output line.public PutField(java.util.function.Supplier<BaseDataType> val, boolean starts, NumberType col)
val
- The function which supplies the value to be output.starts
- If true
, the output will be placed starting at
the given column (or on the next line at that column, if the
given column is already in use on the current line). If
false
, the output will be placed so that it
ends at the given column (or on the next line at that column,
if the calculated start column is already in use on the
current line).col
- The start or end column (which it is depends on the previous
parameter's value). This is used as a 1-based index into the
current output line.public PutField(BaseDataType val, java.lang.String fmt, boolean starts, NumberType col)
val
- The data to be output.fmt
- The format string to use. If null
, the default
type-specific format will be used.starts
- If true
, the output will be placed starting at
the given column (or on the next line at that column, if the
given column is already in use on the current line). If
false
, the output will be placed so that it
ends at the given column (or on the next line at that column,
if the calculated start column is already in use on the
current line).col
- The start or end column (which it is depends on the previous
parameter's value). This is used as a 1-based index into the
current output line.public PutField(Resolvable val, java.lang.String fmt, boolean starts, NumberType col)
val
- The data to be output.fmt
- The format string to use. If null
, the default
type-specific format will be used.starts
- If true
, the output will be placed starting at
the given column (or on the next line at that column, if the
given column is already in use on the current line). If
false
, the output will be placed so that it
ends at the given column (or on the next line at that column,
if the calculated start column is already in use on the
current line).col
- The start or end column (which it is depends on the previous
parameter's value). This is used as a 1-based index into the
current output line.public PutField(java.util.function.Supplier<BaseDataType> val, java.lang.String fmt, boolean starts, NumberType col)
val
- The function which supplies the value to be output.fmt
- The format string to use. If null
, the default
type-specific format will be used.starts
- If true
, the output will be placed starting at
the given column (or on the next line at that column, if the
given column is already in use on the current line). If
false
, the output will be placed so that it
ends at the given column (or on the next line at that column,
if the calculated start column is already in use on the
current line).col
- The start or end column (which it is depends on the previous
parameter's value). This is used as a 1-based index into the
current output line.public PutField(BaseDataType val, java.lang.String fmt, boolean starts, int col)
val
- The data to be output.fmt
- The format string to use. If null
, the default
type-specific format will be used.starts
- If true
, the output will be placed starting at
the given column (or on the next line at that column, if the
given column is already in use on the current line). If
false
, the output will be placed so that it
ends at the given column (or on the next line at that column,
if the calculated start column is already in use on the
current line).col
- The start or end column (which it is depends on the previous
parameter's value). This is used as a 1-based index into the
current output line.public PutField(Resolvable val, java.lang.String fmt, boolean starts, int col)
val
- The data to be output.fmt
- The format string to use. If null
, the default
type-specific format will be used.starts
- If true
, the output will be placed starting at
the given column (or on the next line at that column, if the
given column is already in use on the current line). If
false
, the output will be placed so that it
ends at the given column (or on the next line at that column,
if the calculated start column is already in use on the
current line).col
- The start or end column (which it is depends on the previous
parameter's value). This is used as a 1-based index into the
current output line.public PutField(java.util.function.Supplier<BaseDataType> val, java.lang.String fmt, boolean starts, int col)
val
- The function which supplies the value to be output.fmt
- The format string to use. If null
, the default
type-specific format will be used.starts
- If true
, the output will be placed starting at
the given column (or on the next line at that column, if the
given column is already in use on the current line). If
false
, the output will be placed so that it
ends at the given column (or on the next line at that column,
if the calculated start column is already in use on the
current line).col
- The start or end column (which it is depends on the previous
parameter's value). This is used as a 1-based index into the
current output line.public void output(Stream out) throws ErrorConditionException
output
in class FieldEntry
out
- The stream to which the field should be rendered.ErrorConditionException
- On any error during I/O.public void resolveData()
resolveData
in class FieldEntry
public 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.