public class DIOCalendarSerde extends Object implements DataInputOutputSerde<Calendar>
Modifier and Type | Field and Description |
---|---|
static EPTypeClass |
EPTYPE |
static DIOCalendarSerde |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
Calendar |
read(DataInput input) |
Calendar |
read(DataInput input,
byte[] unitKey)
Read an object from the stream.
|
static Calendar |
readCalendar(DataInput input) |
void |
write(Calendar object,
DataOutput output) |
void |
write(Calendar object,
DataOutput output,
byte[] unitKey,
EventBeanCollatedWriter writer)
Write an object to the stream.
|
static void |
writeCalendar(Calendar cal,
DataOutput output) |
public static final EPTypeClass EPTYPE
public static final DIOCalendarSerde INSTANCE
public void write(Calendar object, DataOutput output) throws IOException
IOException
public Calendar read(DataInput input) throws IOException
IOException
public void write(Calendar object, DataOutput output, byte[] unitKey, EventBeanCollatedWriter writer) throws IOException
DataInputOutputSerde
write
in interface DataInputOutputSerde<Calendar>
object
- to write or null if this is a nullable valueoutput
- to write tounitKey
- the page key of the page containing the object, can be null if not relevant or not providedwriter
- the writer for events, can be null if not relevant or not providedIOException
- for io exceptionspublic Calendar read(DataInput input, byte[] unitKey) throws IOException
DataInputOutputSerde
read
in interface DataInputOutputSerde<Calendar>
input
- input to readunitKey
- the identifying key of the reader, can be null if not relevant or not providedIOException
- for io exceptionspublic static void writeCalendar(Calendar cal, DataOutput output) throws IOException
IOException
public static Calendar readCalendar(DataInput input) throws IOException
IOException
Copyright © 2005–2021. All rights reserved.