Пример #1
0
 @Override
 public void writeImpl(ByteQueue queue) {
   queue.push(year);
   queue.push(month.getId());
   queue.push((byte) day);
   queue.push(dayOfWeek.getId());
 }
Пример #2
0
 //
 // Reading and writing
 //
 public Date(ByteQueue queue) {
   readTag(queue);
   year = queue.popU1B();
   month = Month.valueOf(queue.pop());
   day = queue.popU1B();
   dayOfWeek = DayOfWeek.valueOf(queue.pop());
 }