File tree 2 files changed +15
-1
lines changed
src/java.base/share/classes/java/nio/charset
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -793,6 +793,15 @@ public abstract class Charset$Coder$ {
793
793
* the current unmappable-character action is {@link
794
794
* CodingErrorAction#REPORT}
795
795
*
796
+ * @throws CharacterCodingException
797
+ * {@code MalformedInputException} if the $itype$ sequence starting at the
798
+ * input buffer's current position is $notLegal$ and the current
799
+ * malformed-input action is {@code CodingErrorAction.REPORT};
800
+ * {@code UnmappableCharacterException} if the $itype$ sequence starting at
801
+ * the input buffer's current position cannot be mapped to an
802
+ * equivalent $otype$ sequence and the current unmappable-character
803
+ * action is {@code CodingErrorAction.REPORT}
804
+ *
796
805
* @throws OutOfMemoryError
797
806
* If the output $otype$ buffer for the requested size of the input
798
807
* $itype$ buffer cannot be allocated
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2001, 2021 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2001, 2023 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -264,6 +264,11 @@ public static CoderResult unmappableForLength(int length) {
264
264
* @throws UnmappableCharacterException
265
265
* If this object represents an unmappable-character error; the
266
266
* exception's length value will be that of this object
267
+ *
268
+ * @throws CharacterCodingException
269
+ * {@code MalformedInputException} if this object represents a
270
+ * malformed-input error; {@code UnmappableCharacterException}
271
+ * if this object represents an unmappable-character error
267
272
*/
268
273
public void throwException ()
269
274
throws CharacterCodingException
You can’t perform that action at this time.
0 commit comments