diff options
author | Tom Tromey <tromey@redhat.com> | 2001-09-02 06:18:49 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2001-09-02 06:18:49 +0000 |
commit | 7eee682ba80fbddd26e9ab9ddfa320711485a405 (patch) | |
tree | 13ae69b3ad4acd54e8b54bf7e5e33cea82d78121 /libjava/java/io | |
parent | 9e0e11bfe4af10bef0a326b926f36a1546ee4882 (diff) | |
download | gcc-7eee682ba80fbddd26e9ab9ddfa320711485a405.zip gcc-7eee682ba80fbddd26e9ab9ddfa320711485a405.tar.gz gcc-7eee682ba80fbddd26e9ab9ddfa320711485a405.tar.bz2 |
Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
* Makefile.am (core_java_source_files): Added
UnsupportedClassVersionError.
* java/lang/UnsupportedClassVersionError.java: New file from
Classpath.
* java/io/CharConversionException.java, java/io/EOFException.java,
java/io/FileNotFoundException.java, java/io/IOException.java,
java/io/InterruptedIOException.java,
java/io/ObjectStreamException.java,
java/io/OptionalDataException.java,
java/io/StreamCorruptedException.java,
java/io/SyncFailedException.java,
java/io/UTFDataFormatException.java,
java/io/UnsupportedEncodingException.java,
java/lang/AbstractMethodError.java,
java/lang/ArithmeticException.java,
java/lang/ArrayIndexOutOfBoundsException.java,
java/lang/ArrayStoreException.java,
java/lang/ClassCastException.java,
java/lang/ClassCircularityError.java,
java/lang/ClassFormatError.java,
java/lang/CloneNotSupportedException.java, java/lang/Error.java,
java/lang/Exception.java,
java/lang/ExceptionInInitializerError.java,
java/lang/IllegalAccessError.java,
java/lang/IllegalAccessException.java,
java/lang/IllegalArgumentException.java,
java/lang/IllegalMonitorStateException.java,
java/lang/IllegalStateException.java,
java/lang/IllegalThreadStateException.java,
java/lang/IncompatibleClassChangeError.java,
java/lang/IndexOutOfBoundsException.java,
java/lang/InstantiationError.java,
java/lang/InstantiationException.java,
java/lang/InternalError.java, java/lang/InterruptedException.java,
java/lang/LinkageError.java,
java/lang/NegativeArraySizeException.java,
java/lang/NoClassDefFoundError.java,
java/lang/NoSuchFieldError.java,
java/lang/NoSuchFieldException.java,
java/lang/NoSuchMethodError.java,
java/lang/NoSuchMethodException.java,
java/lang/NullPointerException.java,
java/lang/NumberFormatException.java,
java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
java/lang/SecurityException.java,
java/lang/StackOverflowError.java,
java/lang/StringIndexOutOfBoundsException.java,
java/lang/ThreadDeath.java, java/lang/UnknownError.java,
java/lang/UnsatisfiedLinkError.java,
java/lang/UnsupportedOperationException.java,
java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
java/lang/reflect/InvocationTargetException.java,
java/net/BindException.java, java/net/ConnectException.java,
java/net/MalformedURLException.java,
java/net/NoRouteToHostException.java,
java/net/ProtocolException.java, java/net/SocketException.java,
java/net/UnknownHostException.java,
java/net/UnknownServiceException.java,
java/text/ParseException.java: Copied from Classpath, thanks to
Mark Wielaard who did the merge.
* java/lang/System.java (getProperty): Use single argument form of
SecurityManager.checkPropertyAccess.
* Makefile.in: Rebuilt.
* Makefile.am (core_java_source_files): Added VMSecurityManager.
* java/lang/VMSecurityManager.java: New file.
* java/lang/SecurityManager.java: Merged with Classpath.
From-SVN: r45353
Diffstat (limited to 'libjava/java/io')
-rw-r--r-- | libjava/java/io/CharConversionException.java | 81 | ||||
-rw-r--r-- | libjava/java/io/EOFException.java | 85 | ||||
-rw-r--r-- | libjava/java/io/FileNotFoundException.java | 81 | ||||
-rw-r--r-- | libjava/java/io/IOException.java | 83 | ||||
-rw-r--r-- | libjava/java/io/InterruptedIOException.java | 108 | ||||
-rw-r--r-- | libjava/java/io/ObjectStreamException.java | 84 | ||||
-rw-r--r-- | libjava/java/io/StreamCorruptedException.java | 83 | ||||
-rw-r--r-- | libjava/java/io/SyncFailedException.java | 76 | ||||
-rw-r--r-- | libjava/java/io/UTFDataFormatException.java | 81 | ||||
-rw-r--r-- | libjava/java/io/UnsupportedEncodingException.java | 83 |
10 files changed, 650 insertions, 195 deletions
diff --git a/libjava/java/io/CharConversionException.java b/libjava/java/io/CharConversionException.java index 938d605..e090dfc 100644 --- a/libjava/java/io/CharConversionException.java +++ b/libjava/java/io/CharConversionException.java @@ -1,34 +1,75 @@ -// CharConversionException.java - Problem converting char to byte encoding. +/* CharConversionException.java -- Character conversion exceptions + Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc. -/* Copyright (C) 1998, 1999 Free Software Foundation +This file is part of GNU Classpath. - This file is part of libgcj. +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. -This software is copyrighted work licensed under the terms of the -Libgcj License. Please consult the file "LIBGCJ_LICENSE" for -details. */ +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. -package java.io; +As a special exception, if you link this library with other files to +produce an executable, this library does not by itself cause the +resulting executable to be covered by the GNU General Public License. +This exception does not however invalidate any other reasons why the +executable file might be covered by the GNU General Public License. */ -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date September 25, 1998 - */ + +package java.io; /* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3 * "The Java Language Specification", ISBN 0-201-63451-1 * Status: Complete to 1.1. */ +/** + * This exception is thrown to indicate that a problem occured with + * an attempted character conversion. + * + * @version 0.0 + * + * @author Aaron M. Renn (arenn@urbanophile.com) + * @author Tom Tromey <tromey@cygnus.com> + * @date September 25, 1998 + */ public class CharConversionException extends IOException { - public CharConversionException () - { - super (); - } - - public CharConversionException (String s) - { - super (s); - } + +/* + * Constructors + */ + +/** + * Create a new CharConversionException without a descriptive error message + */ +public +CharConversionException() +{ + super(); } + +/*************************************************************************/ + +/** + * Create a new CharConversionException with a descriptive error message String + * + * @param message The descriptive error message + */ +public +CharConversionException(String message) +{ + super(message); +} + +} // class CharConversionException + diff --git a/libjava/java/io/EOFException.java b/libjava/java/io/EOFException.java index e5ae1f0..9a57f5f 100644 --- a/libjava/java/io/EOFException.java +++ b/libjava/java/io/EOFException.java @@ -1,34 +1,79 @@ -// EOFException.java - End of file exception +/* EOFException.java -- Unexpected end of file exception + Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc. -/* Copyright (C) 1998, 1999 Free Software Foundation +This file is part of GNU Classpath. - This file is part of libgcj. +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. -This software is copyrighted work licensed under the terms of the -Libgcj License. Please consult the file "LIBGCJ_LICENSE" for -details. */ +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. -package java.io; +As a special exception, if you link this library with other files to +produce an executable, this library does not by itself cause the +resulting executable to be covered by the GNU General Public License. +This exception does not however invalidate any other reasons why the +executable file might be covered by the GNU General Public License. */ -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date September 24, 1998 - */ + +package java.io; /* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3 * "The Java Language Specification", ISBN 0-201-63451-1 * Status: Complete to 1.1. */ +/** + * This exception is thrown when the end of the file or stream was + * encountered unexpectedly. This is not the normal way that a normal + * EOF condition is reported. Normally a special value such as -1 is + * returned. However, certain types of streams expecting certain data + * in a certain format might reach EOF before reading their expected + * data pattern and thus throw this exception. + * + * @version 0.0 + * + * @author Aaron M. Renn (arenn@urbanophile.com) + * @author Tom Tromey <tromey@cygnus.com> + * @date September 24, 1998 + */ public class EOFException extends IOException { - public EOFException () - { - super (); - } - - public EOFException (String s) - { - super (s); - } + +/* + * Constructors + */ + +/** + * Create a new EOFException without a descriptive error message + */ +public +EOFException() +{ + super(); } + +/*************************************************************************/ + +/** + * Create a new EOFException with a descriptive error message String + * + * @param message The descriptive error message + */ +public +EOFException(String message) +{ + super(message); +} + +} // class EOFException + diff --git a/libjava/java/io/FileNotFoundException.java b/libjava/java/io/FileNotFoundException.java index 9482b2e..16150b4 100644 --- a/libjava/java/io/FileNotFoundException.java +++ b/libjava/java/io/FileNotFoundException.java @@ -1,34 +1,75 @@ -// FileNotFoundException.java +/* FileNotFoundException.java -- The requested file could not be found + Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc. -/* Copyright (C) 1998, 1999 Free Software Foundation +This file is part of GNU Classpath. - This file is part of libgcj. +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. -This software is copyrighted work licensed under the terms of the -Libgcj License. Please consult the file "LIBGCJ_LICENSE" for -details. */ +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. -package java.io; +As a special exception, if you link this library with other files to +produce an executable, this library does not by itself cause the +resulting executable to be covered by the GNU General Public License. +This exception does not however invalidate any other reasons why the +executable file might be covered by the GNU General Public License. */ -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date September 24, 1998 - */ + +package java.io; /* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3 * "The Java Language Specification", ISBN 0-201-63451-1 * Status: Complete to 1.1. */ +/** + * This exception is thrown when an attempt is made to access a file that + * does not exist. + * + * @version 0.0 + * + * @author Aaron M. Renn (arenn@urbanophile.com) + * @author Tom Tromey <tromey@cygnus.com> + * @date September 24, 1998 + */ public class FileNotFoundException extends IOException { - public FileNotFoundException () - { - super (); - } - - public FileNotFoundException (String s) - { - super (s); - } + +/* + * Constructors + */ + +/** + * Create a new FileNotFoundException without a descriptive error message + */ +public +FileNotFoundException() +{ + super(); } + +/*************************************************************************/ + +/** + * Create a new FileNotFoundException with a descriptive error message String + * + * @param message The descriptive error message + */ +public +FileNotFoundException(String message) +{ + super(message); +} + +} // class FileNotFoundException + diff --git a/libjava/java/io/IOException.java b/libjava/java/io/IOException.java index e9b2276..815d926 100644 --- a/libjava/java/io/IOException.java +++ b/libjava/java/io/IOException.java @@ -1,34 +1,77 @@ -// IOException.java - Base class for I/O Exceptions +/* IOException.java -- Generic input/output exception + Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc. -/* Copyright (C) 1998, 1999 Free Software Foundation +This file is part of GNU Classpath. - This file is part of libgcj. +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. -This software is copyrighted work licensed under the terms of the -Libgcj License. Please consult the file "LIBGCJ_LICENSE" for -details. */ +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. -package java.io; +As a special exception, if you link this library with other files to +produce an executable, this library does not by itself cause the +resulting executable to be covered by the GNU General Public License. +This exception does not however invalidate any other reasons why the +executable file might be covered by the GNU General Public License. */ -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date September 24, 1998 - */ + +package java.io; /* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3 * "The Java Language Specification", ISBN 0-201-63451-1 * Status: Complete to 1.1. */ +/** + * This exception is thrown to indicate an I/O problem of some sort + * occurred. Since this is a fairly generic exception, often a subclass + * of IOException will actually be thrown in order to provide a more + * detailed indication of what happened. + * + * @version 0.0 + * + * @author Aaron M. Renn (arenn@urbanophile.com) + * @author Tom Tromey <tromey@cygnus.com> + * @date September 24, 1998 + */ public class IOException extends Exception { - public IOException () - { - super (); - } - - public IOException (String s) - { - super (s); - } + +/* + * Constructors + */ + +/** + * Create a new IOException without a descriptive error message + */ +public +IOException() +{ + super(); } + +/*************************************************************************/ + +/** + * Create a new IOException with a descriptive error message String + * + * @param message The descriptive error message + */ +public +IOException(String message) +{ + super(message); +} + +} // class IOException + diff --git a/libjava/java/io/InterruptedIOException.java b/libjava/java/io/InterruptedIOException.java index 7562382..3722863 100644 --- a/libjava/java/io/InterruptedIOException.java +++ b/libjava/java/io/InterruptedIOException.java @@ -1,36 +1,104 @@ -// InterruptedIOException.java +/* InterruptedIOException.java -- An I/O operation was interrupted. + Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc. -/* Copyright (C) 1998, 1999 Free Software Foundation +This file is part of GNU Classpath. - This file is part of libgcj. +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. -This software is copyrighted work licensed under the terms of the -Libgcj License. Please consult the file "LIBGCJ_LICENSE" for -details. */ +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. -package java.io; +As a special exception, if you link this library with other files to +produce an executable, this library does not by itself cause the +resulting executable to be covered by the GNU General Public License. +This exception does not however invalidate any other reasons why the +executable file might be covered by the GNU General Public License. */ -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date September 24, 1998 - */ + +package java.io; /* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3 * "The Java Language Specification", ISBN 0-201-63451-1 * Status: Complete to 1.1. */ +/** + * This exception is thrown when a in process I/O operation is + * interrupted for some reason. The field bytesTransferred will contain + * the number of bytes that were read/written prior to the interruption. + * + * @version 0.0 + * + * @author Aaron M. Renn (arenn@urbanophile.com) + * @author Tom Tromey <tromey@cygnus.com> + * @date September 24, 1998 + */ public class InterruptedIOException extends IOException { - public InterruptedIOException () - { - super (); - } - public InterruptedIOException (String s) - { - super (s); - } +private static final long serialVersionUID = 4020568460727500567L; + +/* + * Instance Variables + */ + +/** + * The number of bytes read/written prior to the interruption + */ +public int bytesTransferred; + +/*************************************************************************/ - public int bytesTransferred = 0; +/* + * Constructors + */ + +/** + * Create a new InterruptedIOException without a descriptive error message + */ +public +InterruptedIOException() +{ + super(); } + +/*************************************************************************/ + +/** + * Create a new InterruptedIOException with a descriptive error message String + * + * @param message The descriptive error message + */ +public +InterruptedIOException(String message) +{ + super(message); +} + +/*************************************************************************/ + +/** + * Create a new InterruptedIOException with a descriptive error message + * String. Also sets the value of the bytesTransferred field. + * + * @param message The descriptive error message + * @param bytesTransferred The number of bytes tranferred before the interruption + */ +InterruptedIOException(String message, int bytesTransferred) +{ + super(message); + this.bytesTransferred = bytesTransferred; +} + +} // class InterruptedIOException + diff --git a/libjava/java/io/ObjectStreamException.java b/libjava/java/io/ObjectStreamException.java index cb293e8..f006321 100644 --- a/libjava/java/io/ObjectStreamException.java +++ b/libjava/java/io/ObjectStreamException.java @@ -1,31 +1,75 @@ -/* Copyright (C) 2000 Free Software Foundation +/* ObjectStreamException.java -- Superclass of all serialisation exceptions + Copyright (C) 1998, 2000, 2001 Free Software Foundation, Inc. - This file is part of libgcj. +This file is part of GNU Classpath. -This software is copyrighted work licensed under the terms of the -Libgcj License. Please consult the file "LIBGCJ_LICENSE" for -details. */ +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. -package java.io; +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. -/** - * @author Warren Levy <warrenl@cygnus.com> - * @date February 7, 2000. - */ +As a special exception, if you link this library with other files to +produce an executable, this library does not by itself cause the +resulting executable to be covered by the GNU General Public License. +This exception does not however invalidate any other reasons why the +executable file might be covered by the GNU General Public License. */ + + +package java.io; /* Written using on-line Java Platform 1.2 API Specification. * Status: Believed complete and correct. */ -public abstract class ObjectStreamException extends IOException +/** + * This exception is thrown when a problem occurs during serialization. + * There are more specific subclasses than give more fine grained + * indications of the precise failure. + * + * @version 0.0 + * + * @author Aaron M. Renn (arenn@urbanophile.com) + * @author Warren Levy <warrenl@cygnus.com> + * @date February 7, 2000. + */ +public abstract class ObjectStreamException extends IOException { - protected ObjectStreamException() - { - super(); - } - - protected ObjectStreamException(String msg) - { - super(msg); - } + +/* + * Constructors + */ + +/** + * Create a new ObjectStreamException without a descriptive error message + */ +protected +ObjectStreamException() +{ + super(); } + +/*************************************************************************/ + +/** + * Create a new ObjectStreamException with a descriptive error message String + * + * @param message The descriptive error message + */ +protected +ObjectStreamException(String message) +{ + super(message); +} + +} // class ObjectStreamException + diff --git a/libjava/java/io/StreamCorruptedException.java b/libjava/java/io/StreamCorruptedException.java index 2741319..7f807ca 100644 --- a/libjava/java/io/StreamCorruptedException.java +++ b/libjava/java/io/StreamCorruptedException.java @@ -1,31 +1,74 @@ -/* Copyright (C) 2000 Free Software Foundation +/* StreamCorruptedException.java -- Error in stream during serialization + Copyright (C) 1998, 2000, 2001 Free Software Foundation, Inc. - This file is part of libgcj. +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +As a special exception, if you link this library with other files to +produce an executable, this library does not by itself cause the +resulting executable to be covered by the GNU General Public License. +This exception does not however invalidate any other reasons why the +executable file might be covered by the GNU General Public License. */ -This software is copyrighted work licensed under the terms of the -Libgcj License. Please consult the file "LIBGCJ_LICENSE" for -details. */ package java.io; -/** - * @author Warren Levy <warrenl@cygnus.com> - * @date February 7, 2000. +/* Written using on-line Java Platform 1.2 API Specification. + * Status: Believed complete and correct. */ + +/** + * This exception is thrown when there is an error in the data that is + * read from a stream during de-serialization. + * + * @version 0.0 + * + * @author Aaron M. Renn (arenn@urbanophile.com) + * @author Warren Levy <warrenl@cygnus.com> + * @date February 7, 2000. + */ +public class StreamCorruptedException extends ObjectStreamException +{ -/* Written using on-line Java Platform 1.2 API Specification. - * Status: Believed complete and correct. +/* + * Constructors */ -public class StreamCorruptedException extends ObjectStreamException +/** + * Create a new StreamCorruptedException without a descriptive error message + */ +public +StreamCorruptedException() { - public StreamCorruptedException() - { - super(); - } - - public StreamCorruptedException(String msg) - { - super(msg); - } + super(); } + +/*************************************************************************/ + +/** + * Create a new StreamCorruptedException with a descriptive error message String + * + * @param message The descriptive error message + */ +public +StreamCorruptedException(String message) +{ + super(message); +} + +} // class StreamCorruptedException + diff --git a/libjava/java/io/SyncFailedException.java b/libjava/java/io/SyncFailedException.java index 964d24a..0ec75d6 100644 --- a/libjava/java/io/SyncFailedException.java +++ b/libjava/java/io/SyncFailedException.java @@ -1,29 +1,75 @@ -// SyncFailedException.java +/* SyncFailedException.java -- The sync failed (?) + Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc. -/* Copyright (C) 1998, 1999 Free Software Foundation +This file is part of GNU Classpath. - This file is part of libgcj. +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. -This software is copyrighted work licensed under the terms of the -Libgcj License. Please consult the file "LIBGCJ_LICENSE" for -details. */ +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. -package java.io; +As a special exception, if you link this library with other files to +produce an executable, this library does not by itself cause the +resulting executable to be covered by the GNU General Public License. +This exception does not however invalidate any other reasons why the +executable file might be covered by the GNU General Public License. */ -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date September 24, 1998 - */ + +package java.io; /* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3 * "The Java Language Specification", ISBN 0-201-63451-1 * Status: Complete to 1.1. */ +/** + * I really wish I knew what caused this exception to be thrown. + * + * @version 0.0 + * + * @author Aaron M. Renn (arenn@urbanophile.com) + * @author Tom Tromey <tromey@cygnus.com> + * @date September 24, 1998 + */ public class SyncFailedException extends IOException { - public SyncFailedException (String s) - { - super (s); - } + +private static final long serialVersionUID = -2353342684412443330L; + +/* + * Constructors + */ + +/** + * Create a new SyncFailedException without a descriptive error message + */ +SyncFailedException() +{ + super(); } + +/*************************************************************************/ + +/** + * Create a new SyncFailedException with a descriptive error message String + * + * @param message The descriptive error message + */ +public +SyncFailedException(String message) +{ + super(message); +} + +} // class SyncFailedException + diff --git a/libjava/java/io/UTFDataFormatException.java b/libjava/java/io/UTFDataFormatException.java index 16445cd..378e992 100644 --- a/libjava/java/io/UTFDataFormatException.java +++ b/libjava/java/io/UTFDataFormatException.java @@ -1,34 +1,75 @@ -// UTFDataFormatException.java +/* UTFDataFormatException.java -- Bad format in UTF data + Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc. -/* Copyright (C) 1998, 1999 Free Software Foundation +This file is part of GNU Classpath. - This file is part of libgcj. +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. -This software is copyrighted work licensed under the terms of the -Libgcj License. Please consult the file "LIBGCJ_LICENSE" for -details. */ +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. -package java.io; +As a special exception, if you link this library with other files to +produce an executable, this library does not by itself cause the +resulting executable to be covered by the GNU General Public License. +This exception does not however invalidate any other reasons why the +executable file might be covered by the GNU General Public License. */ -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date September 24, 1998 - */ + +package java.io; /* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3 * "The Java Language Specification", ISBN 0-201-63451-1 * Status: Complete to 1.1. */ +/** + * When reading a UTF string from an input stream, this exception is thrown + * to indicate that the data read is invalid. + * + * @version 0.0 + * + * @author Aaron M. Renn (arenn@urbanophile.com) + * @author Tom Tromey <tromey@cygnus.com> + * @date September 24, 1998 + */ public class UTFDataFormatException extends IOException { - public UTFDataFormatException () - { - super (); - } - - public UTFDataFormatException (String s) - { - super (s); - } + +/* + * Constructors + */ + +/** + * Create a new UTFDataFormatException without a descriptive error message + */ +public +UTFDataFormatException() +{ + super(); } + +/*************************************************************************/ + +/** + * Create a new UTFDataFormatException with a descriptive error message String + * + * @param message The descriptive error message + */ +public +UTFDataFormatException(String message) +{ + super(message); +} + +} // class UTFDataFormatException + diff --git a/libjava/java/io/UnsupportedEncodingException.java b/libjava/java/io/UnsupportedEncodingException.java index 8ab868e..8ea7f03 100644 --- a/libjava/java/io/UnsupportedEncodingException.java +++ b/libjava/java/io/UnsupportedEncodingException.java @@ -1,32 +1,75 @@ -/* Copyright (C) 1998, 1999 Free Software Foundation +/* UnsupportedEncodingException.java -- The requested encoding isn't supported + Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc. - This file is part of libgcj. +This file is part of GNU Classpath. -This software is copyrighted work licensed under the terms of the -Libgcj License. Please consult the file "LIBGCJ_LICENSE" for -details. */ +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. -package java.io; +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. -/** - * @author Per Bothner <bothner@cygnus.com> - * @date April 17, 1998. - */ +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +02111-1307 USA. + +As a special exception, if you link this library with other files to +produce an executable, this library does not by itself cause the +resulting executable to be covered by the GNU General Public License. +This exception does not however invalidate any other reasons why the +executable file might be covered by the GNU General Public License. */ + + +package java.io; /* Written using "Java Class Libraries", 2nd edition, plus online * API docs for JDK 1.2 beta from http://www.javasoft.com. * Status: Believed complete and correct. */ - + +/** + * This exception is thrown when the requested character encoding is + * not supported. + * + * @version 0.0 + * + * @author Aaron M. Renn (arenn@urbanophile.com) + * @author Per Bothner <bothner@cygnus.com> + * @date April 17, 1998. + */ public class UnsupportedEncodingException extends IOException { - public UnsupportedEncodingException () - { - super(); - } - - public UnsupportedEncodingException (String msg) - { - super(msg); - } + +/* + * Constructors + */ + +/** + * Create a new UnsupportedEncodingException without a descriptive error message + */ +public +UnsupportedEncodingException() +{ + super(); } + +/*************************************************************************/ + +/** + * Create a new UnsupportedEncodingException with a descriptive error message String + * + * @param message The descriptive error message + */ +public +UnsupportedEncodingException(String message) +{ + super(message); +} + +} // class UnsupportedEncodingException + |