From 680a0669d6bf77560df14266fe49b08aa12c71f4 Mon Sep 17 00:00:00 2001 From: Andrew John Hughes Date: Mon, 18 Apr 2005 01:37:35 +0000 Subject: 2005-04-18 Andrew John Hughes * Merge from HEAD for 2005/04/02 - 2005/04/17. 2005-04-17 Roman Kennke * javax/swing/text/SimpleAttributeSet.java (addAttribute): Removed null pointer check. * javax/swing/text/StyleContext.java (NamedStyle.setResolveParent): Added null pointer check. 2005-04-17 Roman Kennke * examples/gnu/classpath/exammples/swing/Demo.java: Print a short summary for available values for the property swing.defaultlaf. Set MetalLookAndFeel as default. Pulled out GNULookAndFeel so that it is accessible. * examples/gnu/classpath/exammples/swing/GNULookAndFeel.java: Pulled out this class from Demo.java. 2005-04-17 Roman Kennke * javax/swing/UIManager.java: Make the UIManager respect the swing.defaultlaf system property. 2005-04-17 Roman Kennke * javax/swing/text/SimpleAttributeSet.java (addAttribute): Check for null and remove key in that case. This fixes http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21064 . 2005-04-16 Roman Kennke * java/awt/BorderLayout.java (calcSize): Check for overflow when component sizes are added. 2005-04-16 Andrew John Hughes * java/rmi/Naming.java: Added class documentation. (lookup(String)): Call parseURL and getName. (bind(String,java.rmi.Remote)): Likewise. (unbind(String)): Likewise. (rebind(String, java.rmi.Remote)): Likewise. (list(String)): Call parseURL. (parseURL(String)): New method to handle parsing and defaults. (getName(java.net.URL)): New method to handle finding the service name. 2005-04-16 Andrew John Hughes * java/net/URI.java: Added class documentation. (parseURI(String)): Only handle scheme-specific parts if URI is not opaque. Allow for parts that can't be null. (toString()): Output the scheme-specific part whole, rather than as its possibly non-existent components. 2005-04-16 Michael Koch * java/rmi/server/RemoteObject.java: Removed unused import statement. 2005-04-16 Michael Koch * include/Makefile.am: Removed java_io_ObjectInputStream.h and added java_io_VMObjectInputStream.h. * include/java_io_ObjectInputStream.h: Removed. * include/java_io_VMObjectInputStream.h: New file. * java/io/ObjectInputStream.java (currentClassLoader): Removed. (allocateObject): Likewise. * native/jni/java-io/Makefile.am: Removed java_io_ObjectInputStream.c and added java_io_VMObjectInputStream.c. * native/jni/java-io/java_io_ObjectInputStream.c: Removed. * native/jni/java-io/java_io_VMObjectInputStream.c: New file. * vm/reference/java/io/VMObjectInputStream.java: Likewise. 2005-04-16 Michael Koch * include/java_lang_Double.h, include/java_lang_Object.h, native/jni/java-lang/java_lang_Double.c, native/jni/java-lang/java_lang_Object.c: Removed. * include/java_lang_VMDouble.h: Regenerated. * java/lang/Double.java (static): Removed. (toString): Call native method from VMDouble. (parseDouble): Make non-native and call native method from VMDouble. (toString): Removed. * java/lang/Float.java (toString): Call native method from VMDouble. * java/lang/Object.java (getClass): Refactored to call the native in java.lang.VMObject. * include/Makefile.am: Don't generate java_lang_Double.h and java_lang_Object.h. * native/jni/java-lang/Makefile.am: Removed java_lang_Double.c and java_lang_Object.c. * native/jni/java-lang/java_lang_VMDouble.c (initIDs): New method. (toString): Likewise. (parseDouble): Likewise. * vm/reference/java/lang/VMDouble.java (initIDs): Likewise. (toString): Likewise. (parseDouble): Likewise. * vm/reference/java/lang/VMObject.java (getClass): Likewise. 2005-04-15 Andrew John Hughes * java/text/DecimalFormatSymbols.java: Added retrieval of "XXX" instance in place of null. * java/util/Currency.java, (Currency(String)): New constructor for the XXX special case. (getInstance(String)): Allow special case of "XXX". 2005-04-15 Roman Kennke * javax/swing/plaf/metal/MetalLookAndFeel.java (initComponentDefaults): Added Label.font. (initSystemColorDefaults): Added this method and adjusted the general control color. 2005-04-15 Roman Kennke * javax/swing/plaf/metal/MetalTabbedPaneUI.java: Added newline between import blocks. Changed Map to HashMap in field declarations. 2005-04-15 Sven de Marothy * gnu/java/nio/charset/EncodingHelper.java: Added method * java/io/InputStreamReader.java, * java/io/OutputStreamWriter.java, * java/lang/String.java: Move to NIO charsets. * java/io/PrintStream.java: Inline conversion using String. 2005-04-15 Roman Kennke * javax/swing/plaf/metal/MetalBorders.java: Added. * javax/swing/plaf/metal/MetalButtonUI.java: (installDefaults): Install button font. * javax/swing/plaf/metal/MetalLookAndFeel.java: (initComponentDefaults): Added button border, font and margin. Changed components background color to the Metal current themes standard color. 2005-04-15 Roman Kennke * javax/swing/plaf/metal/MetalTabbedPaneUI.java (createUI): Create one MetalTabbedPaneUI per Component instead of sharing one instance. 2005-04-15 Roman Kennke * javax/swing/plaf/metal/MetalLookAndFeel.java (initComponentDefaults): Added to set Metal specific component defaults. 2005-04-14 Chris Burdess * java/io/DataOutputStream.java (writeUTF): Use block write for output. 2005-04-14 Mark Wielaard * javax/swing/plaf/metal/MetalLookAndFeel.java (initClassDefaults): Call super.initClassDefaults(). 2005-04-14 Roman Kennke * javax/swing/plaf/metal/MetalLookAndFeel.java (initClassDefaults): Added to include the *UI classes. 2005-04-14 Roman Kennke * javax/swing/plaf/metal/MetalComboBoxUI.java: Added. * javax/swing/plaf/metal/MetalDesktopIconUI.java: Added. * javax/swing/plaf/metal/MetalInternalFrameUI.java: Added. * javax/swing/plaf/metal/MetalPopupMenuSeparatorUI.java: Added. * javax/swing/plaf/metal/MetalProgressBarUI.java: Added. * javax/swing/plaf/metal/MetalRootPaneUI.java: Added. * javax/swing/plaf/metal/MetalScrollBarUI.java: Added. * javax/swing/plaf/metal/MetalSeparatorUI.java: Added. * javax/swing/plaf/metal/MetalSliderUI.java: Added. * javax/swing/plaf/metal/MetalSplitPaneUI.java: Added. * javax/swing/plaf/metal/MetalTextFieldUI.java: Added. * javax/swing/plaf/metal/MetalToggleButtonUI.java: 2005-04-14 Roman Kennke * javax/swing/plaf/metal/MetalButtonUI.java: Fixed year in copyright notice. * javax/swing/plaf/metal/MetalCheckBoxUI.java: Fixed year in copyright notice. * javax/swing/plaf/metal/MetalLabelUI.java: Fixed year in copyright notice. * javax/swing/plaf/metal/MetalRadioButtonUI.java: Fixed year in copyright notice. * javax/swing/plaf/metal/MetalScrollPaneUI.java: Fixed year in copyright notice. * javax/swing/plaf/metal/MetalTabbedPaneUI.java: Fixed year in copyright notice. 2005-04-13 Roman Kennke * javax/swing/plaf/metal/MetalButtonUI.java: Added skeleton class. * javax/swing/plaf/metal/MetalCheckBoxUI.java: Added skeleton class. * javax/swing/plaf/metal/MetalLabelUI.java: Added skeleton class. * javax/swing/plaf/metal/MetalRadioButtonUI.java: Added skeleton class. * javax/swing/plaf/metal/MetalScrollPaneUI.java: Added skeleton class. * javax/swing/plaf/metal/MetalTabbedPaneUI.java: Added skeleton class. 2005-04-13 Sven de Marothy * java/nio/charset/Charset.java: Cached encoders shouldn't be static. 2005-04-13 Roman Kennke * java/awt/MediaTracker.java: Reindented tabs to spaces. 2005-04-13 Roman Kennke * java/awt/MediaTracker.java (MediaEntry.imageUpdate): Removed check for SOMEBITS, this confused the media tracker and lead to lockups. The LOADING bit is handled on other places. (addImage): Removed the 'start image tracking' stuff. This is not necessary and could confuse the media tracker. (checkAll): Improved the check for image status so that images that already complete images are detected. Also now are really all images checked and if necessary loaded. Before the method bailed out after the first incomplete image. (statusAll): Detect images that are complete after the call to Component.prepareImage(..). (checkID): The same as in checkAll. (statusID): The same as in statusAll. 2005-04-12 Roman Kennke * java/util/.cvsignore: Added file and included LocaleDate.java. * lib/.cvsignore: Added classes.locale. * scripts/.cvsignore: Added classpath.spec. 2005-04-12 Roman Kennke * javax/swing/plaf/basic/BasicMenuUI.java (getMaximumSize): Now returns preferredSize because JMenu should never be bigger than that. * javax/swing/JRootPane (RootLayout.layoutContainer): Make JMenuBars take the whole width. 2005-04-12 Roman Kennke * javax/swing/plaf/basic/BasicMenuBarUI.java: Fixed tabs to spaces. 2005-04-12 Roman Kennke * javax/swing/JRootPane.java: Fixed various tabs to be spaces. (RootLayout.layoutContainer): Made menubar left aligned. 2005-04-12 Roman Kennke * javax/swing/JComponent.java: Modified alignmentX and alignmentY to be 0.5 instead of 0.0. Untabified the file. 2005-04-12 Roman Kennke * javax/swing/BoxLayout.java: (layoutContainer): Made this layout manager respect the minimum, maximum and preferred size more correctly. 2005-04-12 Roman Kennke * java/awt/MediaTracker.java (addImage): Synchronized list access. (waitForAll): Fixed comparison of time (changed < to >). (waitForID): Fixed comparison of time (changed < to >). (removeImage): Synchronized list access. 2005-04-12 Michael Koch * java/io/FilePermission.java (serialVersionUID): Made private. (ALL_FILES): New constant. (implies): Handle '<>' case. 2005-04-12 Audrius Meskauskas, Lithuania * javax/swing/text/html/HTMLDocument.java: New file. 2005-04-12 Michael Koch * javax/swing/text/html/HTMLFrameHyperlinkEvent.java: Reformatted. * javax/swing/text/html/parser/AttributeList.java: Fixed order of modifiers. (AttributeList): Made final. * javax/swing/text/html/parser/ContentModel.java: Fixed html characters in javadocs. * javax/swing/text/html/parser/DTD.java (DTD): Don't implement java.io.Serializable directly. (getElement): Simplified. * javax/swing/text/html/parser/DTDConstants.java: Reformatted file. * javax/swing/text/html/parser/Element.java: Fixed order of modifiers. * javax/swing/text/html/parser/Parser.java: Reformatted. Don't use fully-qualified class names. * javax/swing/text/html/parser/ParserDelegator.java: Fixed order of modifiers. * javax/swing/text/rtf/RTFParser.java: Re-ordered import statements. * javax/swing/text/rtf/RTFScanner.java: Removed unused import statement. 2005-04-12 Michael Koch * java/awt/image/RasterOp.java: Fixed wrong formatting. 2005-04-12 Michael Koch * java/awt/print/PrinterJob.java (pageDialog): New method. (printDialog): Implemented. 2005-04-12 Michael Koch * java/awt/FontMetrics.java: Reformatted. (getFontRenderContext): Handle case when java.awt.Graphics context is given. 2005-04-12 Michael Koch * java/awt/FontMetrics.java (getStringBounds): New methods. 2005-04-12 Michael Koch * java/net/NetworkInterface.java (NetworkInterface): Made constructor package private. Introduced another constructor for more addresses on one interface. 2005-04-12 Michael Koch * native/jni/java-net/Makefile.am Compile new files java_net_VMInetAddress.c and java_net_VMNetworkInterface. 2005-04-12 Sven de Marothy * gnu/java/nio/charset/Provider.java: Add UnicodeLittle. * gnu/java/nio/charset/UnicodeLittle.java: New file. * gnu/java/nio/charset/UTF_16.java: UnicodeBig is an alias. * gnu/java/nio/charset/UTF_16BE.java, * gnu/java/nio/charset/UTF_16LE.java: No byte-order mark. * gnu/java/nio/charset/UTF_16Encoder.java (encodeLoop): Fixed bug. 2005-04-11 Michael Koch * java/net/InetAddress.java (static): Removed. (getLocalHostname): Likewise. (lookupInaddrAny): Likewise. (getHostByAddr): Likewise. (getHostByName): Likewise. * java/net/NetworkInterface.java (static): Likewise. (getRealNetworkInterfaces): Likewise. * native/jni/java-net/java_net_InetAddress.c: Renamed to... * native/jni/java-net/java_net_VMInetAddress.c: New file. Renamed from java_net_InetAddress.c. All native methods moved to class VMInetAddress. * native/jni/java-net/java_net_NetworkInterface.c: Renamed to... Renamed from java_net_NetworkInterface.c. All native methods moved to class VMNetworkInterface. * native/jni/java-net/java_net_VMNetworkInterface.c: New file. * vm/reference/java/net/VMInetAddress.java, vm/reference/java/net/VMNetworkInterface.java: New files. * include/java_net_InetAddress.h, include/java_net_NetworkInterface.h: Removed. * include/java_net_VMInetAddress.h, include/java_net_VMNetworkInterface.h: New files. * include/Makefile.am: Build new header files. 2005-04-11 Roman Kennke * javax/swing/ImageIcon.java Added API documentation. 2005-04-11 Roman Kennke * java/awt/MediaTracker.java Added API documentation. 2005-04-11 Michael Koch * javax/imageio/ImageIO.java (ReaderFormatFilter.filter): Fixed wrong casting. 2005-04-11 Andrew John Hughes * org/omg/CORBA/Request.java: (send_deferred): Added missing 'abstract' keyword. 2005-04-10 Sven de Marothy * java/text/SimpleDateFormat.java: (formatWithAttribute): Pad year before truncating digits. 2005-04-10 Audrius Meskauskas * org/omg/CORBA/PRIVATE_MEMBER.java, org/omg/CORBA/PUBLIC_MEMBER.java, org/omg/CORBA/Request.java, org/omg/CORBA/StructMember.java, org/omg/CORBA/UnionMember.java, org/omg/CORBA/UNSUPPORTED_POLICY.java, org/omg/CORBA/UNSUPPORTED_POLICY_VALUE.java, org/omg/CORBA/ValueMember.java, org/omg/CORBA/VM_ABSTRACT.java, org/omg/CORBA/VM_CUSTOM.java, org/omg/CORBA/VM_NONE.java, org/omg/CORBA/VM_TRUNCATABLE.java, org/omg/CORBA/WrongTransaction.java, org/omg/CORBA/BAD_POLICY.java, org/omg/CORBA/BAD_POLICY_TYPE.java, org/omg/CORBA/BAD_POLICY_VALUE.java, org/omg/CORBA/Environment.java, org/omg/CORBA/IDLType.java, org/omg/CORBA/OMGVMCID.java: new files. 2005-04-09 Mark Wielaard * native/jni/java-lang/java_lang_Double.c: Reindent. * native/jni/java-lang/java_lang_Math.c: Likewise. * native/jni/java-lang/java_lang_Object.c: Likewise. * native/jni/java-lang/java_lang_VMDouble.c: Likewise. * native/jni/java-lang/java_lang_VMFloat.c: Likewise. * native/jni/java-lang/java_lang_VMSystem.c: Likewise. * native/jni/java-lang/java_lang_reflect_Array.c: Likewise. * native/jni/java-nio/java_nio.c (Java_gnu_java_nio_FileChannelImpl_nio_1mmap_1file): Removed. (Java_gnu_java_nio_FileChannelImpl_nio_1unmmap_1file): Likewise. (Java_gnu_java_nio_SocketChannelImpl_SocketCreate): Likewise. (Java_gnu_java_nio_SocketChannelImpl_SocketConnect): Likewise. (Java_gnu_java_nio_SocketChannelImpl_SocketBind): Likewise. (Java_gnu_java_nio_SocketChannelImpl_SocketListen): Likewise. (Java_gnu_java_nio_SocketChannelImpl_SocketAvailable): Likewise. (Java_gnu_java_nio_SocketChannelImpl_SocketClose): Likewise. (Java_gnu_java_nio_SocketChannelImpl_SocketRead): Likewise. (Java_gnu_java_nio_SocketChannelImpl_SocketWrite): Likewise. * native/jni/java-nio/java_nio_VMDirectByteBuffer.c: Reindent. 2005-04-09 Audrius Meskauskas * org/omg/CORBA/DynAnyPackage/Invalid.java, org/omg/CORBA/DynAnyPackage/InvalidSeq.java, org/omg/CORBA/DynAnyPackage/InvalidValue.java, org/omg/CORBA/DynAnyPackage/TypeMismatch.java, org/omg/CORBA/DynAnyPackage/package.html: New files. 2005-04-08 Sven de Marothy * gnu/java/nio/charset/UTF_8.java (Decoder): Previous fix was incorrect. Sorry. * java/nio/charset/Charset.java: Reset cached de/encoders. * java/nio/charset/CharsetDecoder.java, java/nio/charset/CharsetEncoder.java: Resize encoding/decoding result buffers. 2005-04-08 Sven de Marothy * gnu/java/nio/charset/Provider.java: Add new charsets. * gnu/java/nio/charset/UTF_16.java: Default to using BOM. * gnu/java/nio/charset/UTF_16Decoder.java: Minor fixes. * gnu/java/nio/charset/UTF_16Encoder.java, Use NIO's built-in byte-ordering instead. * gnu/java/nio/charset/UTF_8.java, (Decoder): Correct values of maximum chars per byte. (decodeLoop): Handle 4-byte surrogates. * gnu/java/nio/charset/ByteCharset.java * gnu/java/nio/charset/Cp424.java * gnu/java/nio/charset/Cp437.java * gnu/java/nio/charset/Cp737.java * gnu/java/nio/charset/Cp775.java * gnu/java/nio/charset/Cp850.java * gnu/java/nio/charset/Cp852.java * gnu/java/nio/charset/Cp855.java * gnu/java/nio/charset/Cp857.java * gnu/java/nio/charset/Cp860.java * gnu/java/nio/charset/Cp861.java * gnu/java/nio/charset/Cp862.java * gnu/java/nio/charset/Cp863.java * gnu/java/nio/charset/Cp864.java * gnu/java/nio/charset/Cp865.java * gnu/java/nio/charset/Cp866.java * gnu/java/nio/charset/Cp869.java * gnu/java/nio/charset/Cp874.java * gnu/java/nio/charset/EncodingHelper.java * gnu/java/nio/charset/ISO_8859_13.java * gnu/java/nio/charset/ISO_8859_15.java * gnu/java/nio/charset/ISO_8859_2.java * gnu/java/nio/charset/ISO_8859_3.java * gnu/java/nio/charset/ISO_8859_4.java * gnu/java/nio/charset/ISO_8859_5.java * gnu/java/nio/charset/ISO_8859_6.java * gnu/java/nio/charset/ISO_8859_7.java * gnu/java/nio/charset/ISO_8859_8.java * gnu/java/nio/charset/ISO_8859_9.java * gnu/java/nio/charset/KOI_8.java * gnu/java/nio/charset/MS874.java * gnu/java/nio/charset/MacCentralEurope.java * gnu/java/nio/charset/MacCroatian.java * gnu/java/nio/charset/MacCyrillic.java * gnu/java/nio/charset/MacDingbat.java * gnu/java/nio/charset/MacGreek.java * gnu/java/nio/charset/MacIceland.java * gnu/java/nio/charset/MacRoman.java * gnu/java/nio/charset/MacRomania.java * gnu/java/nio/charset/MacSymbol.java * gnu/java/nio/charset/MacThai.java * gnu/java/nio/charset/MacTurkish.java * gnu/java/nio/charset/Windows1250.java * gnu/java/nio/charset/Windows1251.java * gnu/java/nio/charset/Windows1252.java * gnu/java/nio/charset/Windows1253.java * gnu/java/nio/charset/Windows1254.java * gnu/java/nio/charset/Windows1255.java * gnu/java/nio/charset/Windows1256.java * gnu/java/nio/charset/Windows1257.java * gnu/java/nio/charset/Windows1258.java New files. 2005-04-08 Roman Kennke * java/awt/MediaTracker.java (MediaEntry.imageUpdate): Fixed flags. The different flags must not be ORed together. (checkAll): Modified to handle different meaning of the flags. (waitForAll): Fixed so that it waits maximum the specified amount of milliseconds. (statusAll): Modified to handle different meaning of the flags. (waitForID): Fixed so that it waits maximum the specified amount of milliseconds. 2005-04-08 Roman Kennke * javax/swing/text/ImageIcon.java (ImageIcon): Use setImage instead of direct assignment. (setImage): Call loadImage to make sure that the image is loaded. (loadImage): Waits for the image to complete loading. (getImageLoadStatus): Added. Returns the load status of the image. 2005-04-08 Guilhem Lavaux * native/jni/classpath/jcl.h, native/jni/java-io/java_io_ObjectInputStream.c, native/jni/java-io/java_io_VMFile.c, native/jni/java-io/java_io_VMObjectStreamClass.c, native/jni/java-io/javaio.c, native/jni/java-lang/java_lang_Double.c, native/jni/java-lang/java_lang_Math.c, native/jni/java-lang/java_lang_Object.c, native/jni/java-lang/java_lang_VMDouble.c, native/jni/java-lang/java_lang_VMFloat.c, native/jni/java-lang/java_lang_VMProcess.c, native/jni/java-lang/java_lang_VMSystem.c, native/jni/java-lang/java_lang_reflect_Array.c, native/jni/java-net/gnu_java_net_PlainDatagramSocketImpl.c, native/jni/java-net/gnu_java_net_PlainSocketImpl.c, native/jni/java-net/java_net_InetAddress.c, native/jni/java-net/java_net_NetworkInterface.c, native/jni/java-net/javanet.c, native/jni/java-nio/gnu_java_nio_VMPipe.c, native/jni/java-nio/gnu_java_nio_channels_FileChannelImpl.c, native/jni/java-nio/java_nio.c, native/jni/java-nio/java_nio_MappedByteBufferImpl.c, native/jni/java-nio/java_nio_VMDirectByteBuffer.c, native/jni/java-util/java_util_VMTimeZone.c: Reindented using GNU indent (GNU style). 2005-04-08 Roman Kennke * javax/swing/text/JTextComponent.java (JTextComponent): Added repaintListener which issues repaint requests when the underlying document changes. (setDocument): Adds repaintListener to document when the document is changed. * javax/swing/text/DefaultEditorKit.java: Removed repaint calls on JTextComponent. This is now handled through a DocumentListener in JTextComponent that repaints the component when needed. 2005-04-07 Chris Burdess * gnu/java/net/CRLFInputStream.java: Rewrite to return CRLF-delimited chunks. 2005-04-07 Roman Kennke * javax/swing/UIDefaults.java: Added API documentation for all methods. 2005-04-06 Roman Kennke * javax/swing/UIDefaults.java (put): Now uses new checkAndPut method instead of checking directly. (putDefaults): Fixed so that it accepts null-values and treats them like remove(key). (checkAndPut): Added. This checks for null-values and calls put or remove. 2005-04-06 Audrius Meskauskas * org/omg/CORBA/CTX_RESTRICT_SCOPE.java, org/omg/CORBA/ExceptionList.java, org/omg/CORBA/NVList.java, PrincipalHolder.java: New classes. * org/omg/CORBA/Context.java: Completing part, dependent from classes above, org/omg/CORBA/MARSHAL.java: accessibility fixes. 2005-04-05 Roman Kennke * gnu/java/awt/peer/gtk/GdkScreenGraphicsDevice.java (getDisplayMode): Added. Returns the current display mode. (isFullScreenSupported): Added. * java/awt/GraphicsDevice.java (setFullScreenWindow): Implemented a primitive fullscreen mode. This resizes and relocates the fullscreen window so that it uses the whole screen. This is not a fully accelerated fullscreen exclusive mode. 2005-04-03 Guilhem Lavaux Rei Odaira * native/jni/java-nio/gnu_java_nio_VMSelector.c (helper_select): Return the error number. (Java_gnu_java_nio_VMSelector_select0): If the result is negative consider it as the error code. This prevents conflicts between EINTR and the number of filedescriptor particularly. 2005-04-03 Guilhem Lavaux * native/jni/java-nio/gnu_java_nio_VMSelector.c: Reindented. --- gnu/java/nio/charset/MacGreek.java | 89 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 gnu/java/nio/charset/MacGreek.java (limited to 'gnu/java/nio/charset/MacGreek.java') diff --git a/gnu/java/nio/charset/MacGreek.java b/gnu/java/nio/charset/MacGreek.java new file mode 100644 index 000000000..8be6ade4d --- /dev/null +++ b/gnu/java/nio/charset/MacGreek.java @@ -0,0 +1,89 @@ +/* MacGreek.java -- Charset implementation for the MacGreek character set. + Copyright (C) 2005 Free Software Foundation, Inc. + +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. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + +package gnu.java.nio.charset; + +public class MacGreek extends ByteCharset +{ + + /** + * This is the lookup table for this encoding + */ + private static final char[] lookup = + { + 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, + 0x0008, 0x0009, 0x000A, 0x000B, 0x000C, 0x000D, 0x000E, 0x000F, + 0x0010, 0x0011, 0x0012, 0x0013, 0x0014, 0x0015, 0x0016, 0x0017, + 0x0018, 0x0019, 0x001A, 0x001B, 0x001C, 0x001D, 0x001E, 0x001F, + 0x0020, 0x0021, 0x0022, 0x0023, 0x0024, 0x0025, 0x0026, 0x0027, + 0x0028, 0x0029, 0x002A, 0x002B, 0x002C, 0x002D, 0x002E, 0x002F, + 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037, + 0x0038, 0x0039, 0x003A, 0x003B, 0x003C, 0x003D, 0x003E, 0x003F, + 0x0040, 0x0041, 0x0042, 0x0043, 0x0044, 0x0045, 0x0046, 0x0047, + 0x0048, 0x0049, 0x004A, 0x004B, 0x004C, 0x004D, 0x004E, 0x004F, + 0x0050, 0x0051, 0x0052, 0x0053, 0x0054, 0x0055, 0x0056, 0x0057, + 0x0058, 0x0059, 0x005A, 0x005B, 0x005C, 0x005D, 0x005E, 0x005F, + 0x0060, 0x0061, 0x0062, 0x0063, 0x0064, 0x0065, 0x0066, 0x0067, + 0x0068, 0x0069, 0x006A, 0x006B, 0x006C, 0x006D, 0x006E, 0x006F, + 0x0070, 0x0071, 0x0072, 0x0073, 0x0074, 0x0075, 0x0076, 0x0077, + 0x0078, 0x0079, 0x007A, 0x007B, 0x007C, 0x007D, 0x007E, NONE, + 0x00C4, 0x00B9, 0x00B2, 0x00C9, 0x00B3, 0x00D6, 0x00DC, 0x0385, + 0x00E0, 0x00E2, 0x00E4, 0x0384, 0x00A8, 0x00E7, 0x00E9, 0x00E8, + 0x00EA, 0x00EB, 0x00A3, 0x2122, 0x00EE, 0x00EF, 0x2022, 0x00BD, + 0x2030, 0x00F4, 0x00F6, 0x00A6, 0x20AC, 0x00F9, 0x00FB, 0x00FC, + 0x2020, 0x0393, 0x0394, 0x0398, 0x039B, 0x039E, 0x03A0, 0x00DF, + 0x00AE, 0x00A9, 0x03A3, 0x03AA, 0x00A7, 0x2260, 0x00B0, 0x00B7, + 0x0391, 0x00B1, 0x2264, 0x2265, 0x00A5, 0x0392, 0x0395, 0x0396, + 0x0397, 0x0399, 0x039A, 0x039C, 0x03A6, 0x03AB, 0x03A8, 0x03A9, + 0x03AC, 0x039D, 0x00AC, 0x039F, 0x03A1, 0x2248, 0x03A4, 0x00AB, + 0x00BB, 0x2026, 0x00A0, 0x03A5, 0x03A7, 0x0386, 0x0388, 0x0153, + 0x2013, 0x2015, 0x201C, 0x201D, 0x2018, 0x2019, 0x00F7, 0x0389, + 0x038A, 0x038C, 0x038E, 0x03AD, 0x03AE, 0x03AF, 0x03CC, 0x038F, + 0x03CD, 0x03B1, 0x03B2, 0x03C8, 0x03B4, 0x03B5, 0x03C6, 0x03B3, + 0x03B7, 0x03B9, 0x03BE, 0x03BA, 0x03BB, 0x03BC, 0x03BD, 0x03BF, + 0x03C0, 0x03CE, 0x03C1, 0x03C3, 0x03C4, 0x03B8, 0x03C9, 0x03C2, + 0x03C7, 0x03C5, 0x03B6, 0x03CA, 0x03CB, 0x0390, 0x03B0, 0x00AD + }; + + public MacGreek() + { + super("MacGreek", new String[] { + }); + lookupTable = lookup; + } + +} // class MacGreek -- cgit v1.2.1