@@ -758,9 +758,9 @@ public final boolean readBoolean() throws IOException {
758
758
* If the byte read is {@code b}, where
759
759
* {@code 0 <= b <= 255},
760
760
* then the result is:
761
- * <blockquote><pre>
761
+ * {@snippet lang=java :
762
762
* (byte)(b)
763
- * </pre></blockquote>
763
+ * }
764
764
* <p>
765
765
* This method blocks until the byte is read, the end of the stream
766
766
* is detected, or an exception is thrown.
@@ -801,9 +801,9 @@ public final int readUnsignedByte() throws IOException {
801
801
* {@code b1} and {@code b2}, where each of the two values is
802
802
* between {@code 0} and {@code 255}, inclusive, then the
803
803
* result is equal to:
804
- * <blockquote><pre>
805
- * (short)((b1 << 8) | b2)
806
- * </pre></blockquote>
804
+ * {@snippet lang=java :
805
+ * (short)((b1 << 8) | b2)
806
+ * }
807
807
* <p>
808
808
* This method blocks until the two bytes are read, the end of the
809
809
* stream is detected, or an exception is thrown.
@@ -825,9 +825,9 @@ public final short readShort() throws IOException {
825
825
* {@code b1} and {@code b2}, where
826
826
* {@code 0 <= b1, b2 <= 255},
827
827
* then the result is equal to:
828
- * <blockquote><pre>
829
- * (b1 << 8) | b2
830
- * </pre></blockquote>
828
+ * {@snippet lang=java :
829
+ * (b1 << 8) | b2
830
+ * }
831
831
* <p>
832
832
* This method blocks until the two bytes are read, the end of the
833
833
* stream is detected, or an exception is thrown.
@@ -851,9 +851,9 @@ public final int readUnsignedShort() throws IOException {
851
851
* {@code b1} and {@code b2}, where
852
852
* {@code 0 <= b1, b2 <= 255},
853
853
* then the result is equal to:
854
- * <blockquote><pre>
855
- * (char)((b1 << 8) | b2)
856
- * </pre></blockquote>
854
+ * {@snippet lang=java :
855
+ * (char)((b1 << 8) | b2)
856
+ * }
857
857
* <p>
858
858
* This method blocks until the two bytes are read, the end of the
859
859
* stream is detected, or an exception is thrown.
@@ -875,9 +875,9 @@ public final char readChar() throws IOException {
875
875
* {@code b2}, {@code b3}, and {@code b4}, where
876
876
* {@code 0 <= b1, b2, b3, b4 <= 255},
877
877
* then the result is equal to:
878
- * <blockquote><pre>
879
- * (b1 << 24) | (b2 << 16) + (b3 << 8) + b4
880
- * </pre></blockquote>
878
+ * {@snippet lang=java :
879
+ * (b1 << 24) | (b2 << 16) + (b3 << 8) + b4
880
+ * }
881
881
* <p>
882
882
* This method blocks until the four bytes are read, the end of the
883
883
* stream is detected, or an exception is thrown.
@@ -900,17 +900,17 @@ public final int readInt() throws IOException {
900
900
* {@code b1}, {@code b2}, {@code b3},
901
901
* {@code b4}, {@code b5}, {@code b6},
902
902
* {@code b7}, and {@code b8,} where:
903
- * <blockquote><pre>
904
- * 0 < = b1, b2, b3, b4, b5, b6, b7, b8 <= 255,
905
- * </pre></blockquote>
903
+ * {@snippet :
904
+ * 0 < = b1, b2, b3, b4, b5, b6, b7, b8 <= 255
905
+ * }
906
906
* <p>
907
907
* then the result is equal to:
908
- * <blockquote><pre>
909
- * ((long)b1 << 56) + ((long)b2 << 48)
910
- * + ((long)b3 << 40) + ((long)b4 << 32)
911
- * + ((long)b5 << 24) + ((long)b6 << 16)
912
- * + ((long)b7 << 8) + b8
913
- * </pre></blockquote>
908
+ * {@snippet lang=java :
909
+ * ((long)b1 << 56) + ((long)b2 << 48)
910
+ * + ((long)b3 << 40) + ((long)b4 << 32)
911
+ * + ((long)b5 << 24) + ((long)b6 << 16)
912
+ * + ((long)b7 << 8) + b8
913
+ * }
914
914
* <p>
915
915
* This method blocks until the eight bytes are read, the end of the
916
916
* stream is detected, or an exception is thrown.
0 commit comments