< prev index next >

src/java.base/share/classes/java/io/UTFDataFormatException.java

Print this page




  27 
  28 /**
  29  * Signals that a malformed string in
  30  * <a href="DataInput.html#modified-utf-8">modified UTF-8</a>
  31  * format has been read in a data
  32  * input stream or by any class that implements the data input
  33  * interface.
  34  * See the
  35  * <a href="DataInput.html#modified-utf-8"><code>DataInput</code></a>
  36  * class description for the format in
  37  * which modified UTF-8 strings are read and written.
  38  *
  39  * @author  Frank Yellin
  40  * @see     java.io.DataInput
  41  * @see     java.io.DataInputStream#readUTF(java.io.DataInput)
  42  * @see     java.io.IOException
  43  * @since   1.0
  44  */
  45 public
  46 class UTFDataFormatException extends IOException {

  47     private static final long serialVersionUID = 420743449228280612L;
  48 
  49     /**
  50      * Constructs a <code>UTFDataFormatException</code> with
  51      * <code>null</code> as its error detail message.
  52      */
  53     public UTFDataFormatException() {
  54         super();
  55     }
  56 
  57     /**
  58      * Constructs a <code>UTFDataFormatException</code> with the
  59      * specified detail message. The string <code>s</code> can be
  60      * retrieved later by the
  61      * <code>{@link java.lang.Throwable#getMessage}</code>
  62      * method of class <code>java.lang.Throwable</code>.
  63      *
  64      * @param   s   the detail message.
  65      */
  66     public UTFDataFormatException(String s) {


  27 
  28 /**
  29  * Signals that a malformed string in
  30  * <a href="DataInput.html#modified-utf-8">modified UTF-8</a>
  31  * format has been read in a data
  32  * input stream or by any class that implements the data input
  33  * interface.
  34  * See the
  35  * <a href="DataInput.html#modified-utf-8"><code>DataInput</code></a>
  36  * class description for the format in
  37  * which modified UTF-8 strings are read and written.
  38  *
  39  * @author  Frank Yellin
  40  * @see     java.io.DataInput
  41  * @see     java.io.DataInputStream#readUTF(java.io.DataInput)
  42  * @see     java.io.IOException
  43  * @since   1.0
  44  */
  45 public
  46 class UTFDataFormatException extends IOException {
  47     @java.io.Serial
  48     private static final long serialVersionUID = 420743449228280612L;
  49 
  50     /**
  51      * Constructs a <code>UTFDataFormatException</code> with
  52      * <code>null</code> as its error detail message.
  53      */
  54     public UTFDataFormatException() {
  55         super();
  56     }
  57 
  58     /**
  59      * Constructs a <code>UTFDataFormatException</code> with the
  60      * specified detail message. The string <code>s</code> can be
  61      * retrieved later by the
  62      * <code>{@link java.lang.Throwable#getMessage}</code>
  63      * method of class <code>java.lang.Throwable</code>.
  64      *
  65      * @param   s   the detail message.
  66      */
  67     public UTFDataFormatException(String s) {
< prev index next >