(ObjectOutput out)
| 148 | * @throws IOException in any case of IO-failures |
| 149 | */ |
| 150 | @Override |
| 151 | public void writeExternal(ObjectOutput out) |
| 152 | throws IOException { |
| 153 | |
| 154 | switch (this.type) { |
| 155 | case DATE_TYPE: |
| 156 | this.writeDate(out); |
| 157 | break; |
| 158 | case TIME_TYPE: |
| 159 | this.writeTime(out); |
| 160 | break; |
| 161 | case WEEKMODEL_TYPE: |
| 162 | this.writeWeekmodel(out); |
| 163 | break; |
| 164 | case MOMENT_TYPE: |
| 165 | this.writeMoment(out); |
| 166 | break; |
| 167 | case MACHINE_TIME_TYPE: |
| 168 | this.writeMachineTime(out); |
| 169 | break; |
| 170 | case DURATION_TYPE: |
| 171 | this.writeDuration(out); |
| 172 | break; |
| 173 | case DAY_PERIOD_TYPE: |
| 174 | this.writeDayPeriod(out); |
| 175 | break; |
| 176 | case TIMESTAMP_TYPE: |
| 177 | this.writeTimestamp(out); |
| 178 | break; |
| 179 | default: |
| 180 | throw new InvalidClassException("Unknown serialized type."); |
| 181 | } |
| 182 | |
| 183 | } |
| 184 | |
| 185 | /** |
| 186 | * <p>Implementation method of interface {@link Externalizable}. </p> |
nothing calls this directly
no test coverage detected