Example #1
0
 public void unmarshal(DataInputStream dataStream) throws IOException {
   int length = dataStream.readByte() & 0xFF;
   if (length != 4) {
     throw new IOException();
   }
   super.setLength(length);
   timeOffset = dataStream.readInt();
 }
Example #2
0
 public TimeOffsetOption(int timeOffset) {
   super.setCode(TIME_OFFSET);
   super.setLength(4);
   this.timeOffset = timeOffset;
 }
Example #3
0
 public TimeOffsetOption() {
   super.setCode(TIME_OFFSET);
 }