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

Method readMoment

base/src/main/java/net/time4j/SPX.java:454–467  ·  view source on GitHub ↗
(
        DataInput in,
        byte header
    )

Source from the content-addressed store, hash-verified

452 }
453
454 private Object readMoment(
455 DataInput in,
456 byte header
457 ) throws IOException {
458
459 int lsBit = (header & 1);
460 int fractionBit = ((header & 2) >>> 1);
461
462 boolean positiveLS = (lsBit != 0);
463 boolean hasNanos = (fractionBit != 0);
464
465 return Moment.readTimestamp(in, positiveLS, hasNanos);
466
467 }
468
469 private void writeTimestamp(DataOutput out)
470 throws IOException {

Callers 1

readExternalMethod · 0.95

Calls 1

readTimestampMethod · 0.95

Tested by

no test coverage detected