emul/mini/src/main/java/java/io/UTFDataFormatException.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Wed, 23 Jan 2013 20:39:23 +0100
branchemul
changeset 554 05224402145d
parent 147 emul/src/main/java/java/io/UTFDataFormatException.java@b20ead86892f
permissions -rw-r--r--
First attempt to separate 'mini' profile from the rest of JDK APIs
jtulach@147
     1
/*
jtulach@147
     2
 * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
jtulach@147
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jtulach@147
     4
 *
jtulach@147
     5
 * This code is free software; you can redistribute it and/or modify it
jtulach@147
     6
 * under the terms of the GNU General Public License version 2 only, as
jtulach@147
     7
 * published by the Free Software Foundation.  Oracle designates this
jtulach@147
     8
 * particular file as subject to the "Classpath" exception as provided
jtulach@147
     9
 * by Oracle in the LICENSE file that accompanied this code.
jtulach@147
    10
 *
jtulach@147
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
jtulach@147
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jtulach@147
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
jtulach@147
    14
 * version 2 for more details (a copy is included in the LICENSE file that
jtulach@147
    15
 * accompanied this code).
jtulach@147
    16
 *
jtulach@147
    17
 * You should have received a copy of the GNU General Public License version
jtulach@147
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
jtulach@147
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jtulach@147
    20
 *
jtulach@147
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
jtulach@147
    22
 * or visit www.oracle.com if you need additional information or have any
jtulach@147
    23
 * questions.
jtulach@147
    24
 */
jtulach@147
    25
jtulach@147
    26
package java.io;
jtulach@147
    27
jtulach@147
    28
/**
jtulach@147
    29
 * Signals that a malformed string in
jtulach@147
    30
 * <a href="DataInput.html#modified-utf-8">modified UTF-8</a>
jtulach@147
    31
 * format has been read in a data
jtulach@147
    32
 * input stream or by any class that implements the data input
jtulach@147
    33
 * interface.
jtulach@147
    34
 * See the
jtulach@147
    35
 * <a href="DataInput.html#modified-utf-8"><code>DataInput</code></a>
jtulach@147
    36
 * class description for the format in
jtulach@147
    37
 * which modified UTF-8 strings are read and written.
jtulach@147
    38
 *
jtulach@147
    39
 * @author  Frank Yellin
jtulach@147
    40
 * @see     java.io.DataInput
jtulach@147
    41
 * @see     java.io.DataInputStream#readUTF(java.io.DataInput)
jtulach@147
    42
 * @see     java.io.IOException
jtulach@147
    43
 * @since   JDK1.0
jtulach@147
    44
 */
jtulach@147
    45
public
jtulach@147
    46
class UTFDataFormatException extends IOException {
jtulach@147
    47
    private static final long serialVersionUID = 420743449228280612L;
jtulach@147
    48
jtulach@147
    49
    /**
jtulach@147
    50
     * Constructs a <code>UTFDataFormatException</code> with
jtulach@147
    51
     * <code>null</code> as its error detail message.
jtulach@147
    52
     */
jtulach@147
    53
    public UTFDataFormatException() {
jtulach@147
    54
        super();
jtulach@147
    55
    }
jtulach@147
    56
jtulach@147
    57
    /**
jtulach@147
    58
     * Constructs a <code>UTFDataFormatException</code> with the
jtulach@147
    59
     * specified detail message. The string <code>s</code> can be
jtulach@147
    60
     * retrieved later by the
jtulach@147
    61
     * <code>{@link java.lang.Throwable#getMessage}</code>
jtulach@147
    62
     * method of class <code>java.lang.Throwable</code>.
jtulach@147
    63
     *
jtulach@147
    64
     * @param   s   the detail message.
jtulach@147
    65
     */
jtulach@147
    66
    public UTFDataFormatException(String s) {
jtulach@147
    67
        super(s);
jtulach@147
    68
    }
jtulach@147
    69
}