MCPcopy Create free account
hub / github.com/MenoData/Time4J / writeExternal

Method writeExternal

base/src/main/java/net/time4j/SPX.java:150–183  ·  view source on GitHub ↗
(ObjectOutput out)

Source from the content-addressed store, hash-verified

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>

Callers

nothing calls this directly

Calls 8

writeDateMethod · 0.95
writeTimeMethod · 0.95
writeWeekmodelMethod · 0.95
writeMomentMethod · 0.95
writeMachineTimeMethod · 0.95
writeDurationMethod · 0.95
writeDayPeriodMethod · 0.95
writeTimestampMethod · 0.95

Tested by

no test coverage detected