char r = segment.getCharBigEndian(pos); assertEquals(val, Character.reverseBytes(r));
@Override public final char readChar() throws IOException { final char v = this.segment.getCharBigEndian(this.position); this.position += 2; return v; }
@Override public final char readChar() throws IOException { final char v = this.segment.getCharBigEndian(this.position); this.position += 2; return v; }
@Override public final char readChar() throws IOException { final char v = this.segment.getCharBigEndian(this.position); this.position += 2; return v; }
@Override public final char readChar() throws IOException { final char v = this.segment.getCharBigEndian(this.position); this.position += 2; return v; }
@Override public final char readChar() throws IOException { final char v = this.segment.getCharBigEndian(this.position); this.position += 2; return v; }
@Override public char readChar() throws IOException { if (this.positionInSegment < this.limitInSegment - 1) { final char v = this.currentSegment.getCharBigEndian(this.positionInSegment); this.positionInSegment += 2; return v; } else if (this.positionInSegment == this.limitInSegment) { advance(); return readChar(); } else { return (char) ((readUnsignedByte() << 8) | readUnsignedByte()); } }
@Override public char readChar() throws IOException { if (this.positionInSegment < this.limitInSegment - 1) { final char v = this.currentSegment.getCharBigEndian(this.positionInSegment); this.positionInSegment += 2; return v; } else if (this.positionInSegment == this.limitInSegment) { advance(); return readChar(); } else { return (char) ((readUnsignedByte() << 8) | readUnsignedByte()); } }
@Override public char readChar() throws IOException { if (this.positionInSegment < this.limitInSegment - 1) { final char v = this.currentSegment.getCharBigEndian(this.positionInSegment); this.positionInSegment += 2; return v; } else if (this.positionInSegment == this.limitInSegment) { advance(); return readChar(); } else { return (char) ((readUnsignedByte() << 8) | readUnsignedByte()); } }
@Override public char readChar() throws IOException { if (this.positionInSegment < this.limitInSegment - 1) { final char v = this.currentSegment.getCharBigEndian(this.positionInSegment); this.positionInSegment += 2; return v; } else if (this.positionInSegment == this.limitInSegment) { advance(); return readChar(); } else { return (char) ((readUnsignedByte() << 8) | readUnsignedByte()); } }