summaryrefslogtreecommitdiff
path: root/libjava/java/nio
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/nio')
-rw-r--r--libjava/java/nio/charset/IllegalCharsetNameException.java6
-rw-r--r--libjava/java/nio/charset/MalformedInputException.java8
2 files changed, 12 insertions, 2 deletions
diff --git a/libjava/java/nio/charset/IllegalCharsetNameException.java b/libjava/java/nio/charset/IllegalCharsetNameException.java
index f46e63aa14f..8ee9c702e37 100644
--- a/libjava/java/nio/charset/IllegalCharsetNameException.java
+++ b/libjava/java/nio/charset/IllegalCharsetNameException.java
@@ -48,10 +48,12 @@ public class IllegalCharsetNameException extends IllegalArgumentException
*/
private static final long serialVersionUID = 1457525358470002989L;
- String charsetName;
+ private String charsetName;
/**
* Creates the exception
+ *
+ * @param charsetName name of the illegal charset
*/
public IllegalCharsetNameException (String charsetName)
{
@@ -61,6 +63,8 @@ public class IllegalCharsetNameException extends IllegalArgumentException
/**
* Retrieves the illegal charset name
+ *
+ * @return the illegal charset name
*/
public String getCharsetName ()
{
diff --git a/libjava/java/nio/charset/MalformedInputException.java b/libjava/java/nio/charset/MalformedInputException.java
index 692eed60f94..678c5bc64f9 100644
--- a/libjava/java/nio/charset/MalformedInputException.java
+++ b/libjava/java/nio/charset/MalformedInputException.java
@@ -46,6 +46,8 @@ public class MalformedInputException extends CharacterCodingException
/**
* Creates the exception
+ *
+ * @param inputLength the position of malformed input in the input stream
*/
public MalformedInputException (int inputLength)
{
@@ -54,7 +56,9 @@ public class MalformedInputException extends CharacterCodingException
}
/**
- * Retrieves the illegal charset name
+ * Retrieves the position of the malformed input in the input stream.
+ *
+ * @return the position
*/
public int getInputLength ()
{
@@ -63,6 +67,8 @@ public class MalformedInputException extends CharacterCodingException
/**
* Returns the detail message string of this throwable
+ *
+ * @return the message
*/
public String getMessage ()
{