|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fudgemsg.FudgeFieldType<FudgeDateTime>
org.fudgemsg.types.DateTimeFieldType
public class DateTimeFieldType
The type definition for a date. This is currently backed by a FudgeDateTime
. The secondary
type mechanism is used to support additional Java representations, such as Date
, Calendar
and javax.time
classes.
Field Summary | |
---|---|
static DateTimeFieldType |
INSTANCE
Standard Fudge field type: combined date and time. |
Method Summary | |
---|---|
FudgeDateTime |
readValue(DataInput input,
int dataSize)
Reads a value of this type to the output. |
void |
writeValue(DataOutput output,
FudgeDateTime datetime)
Writes a value of this type to the output. |
Methods inherited from class org.fudgemsg.FudgeFieldType |
---|
equals, getFixedSize, getJavaType, getTypeId, getVariableSize, hashCode, isVariableSize, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final DateTimeFieldType INSTANCE
FudgeTypeDictionary.DATETIME_TYPE_ID
.
Method Detail |
---|
public FudgeDateTime readValue(DataInput input, int dataSize) throws IOException
This is intended for use by variable width types and must read the given value. The implementation must read exactly the number of bytes passed into the method.
readValue
in class FudgeFieldType<FudgeDateTime>
input
- the input source to read the value from, not nulldataSize
- the number of bytes of data to read
IOException
- if an error occurs, which must be wrapped by the callerpublic void writeValue(DataOutput output, FudgeDateTime datetime) throws IOException
This is intended for use by variable width types and must write the given value.
The implementation must write exactly the number of bytes returned by the
size calculation
.
writeValue
in class FudgeFieldType<FudgeDateTime>
output
- the output target to write the value to, not nulldatetime
- the value to write
IOException
- if an error occurs, which must be wrapped by the caller
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |