コード例 #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();
 }
コード例 #2
0
 public TimeOffsetOption(int timeOffset) {
   super.setCode(TIME_OFFSET);
   super.setLength(4);
   this.timeOffset = timeOffset;
 }
コード例 #3
0
 public TimeOffsetOption() {
   super.setCode(TIME_OFFSET);
 }