harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r601315 [2/11] - in /harmony/enhanced/classlib/branches/java6: depends/build/ modules/accessibility/src/main/java/javax/accessibility/ modules/accessibility/src/test/api/java/common/javax/accessibility/ modules/awt/src/main/java/common/java...
Date Wed, 05 Dec 2007 12:26:14 GMT
Modified: harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/ImageIO.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/ImageIO.java?rev=601315&r1=601314&r2=601315&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/ImageIO.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/ImageIO.java Wed Dec  5 04:25:42 2007
@@ -23,6 +23,9 @@
 import javax.imageio.stream.ImageInputStream;
 import javax.imageio.stream.ImageOutputStream;
 import javax.imageio.spi.*;
+
+import org.apache.harmony.luni.util.NotImplementedException;
+
 import java.io.File;
 import java.io.IOException;
 import java.io.InputStream;
@@ -40,25 +43,28 @@
     private ImageIO() {}
     
 
-    public static void scanForPlugins() {
-        throw new UnsupportedOperationException("Not supported yet");
+    public static void scanForPlugins() throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    public static void setUseCache(boolean useCache) {
-        throw new UnsupportedOperationException("Not supported yet");
+    public static void setUseCache(boolean useCache) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     public static boolean getUseCache() {
-        // TODO implement
+        // TODO: implement
         return false;
     }
 
-    public static void setCacheDirectory(File cacheDirectory) {
-        throw new UnsupportedOperationException("Not supported yet");
+    public static void setCacheDirectory(File cacheDirectory) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    public static File getCacheDirectory() {
-        // TODO implement
+    public static File getCacheDirectory() throws NotImplementedException {
+        // TODO: implement
         //-- null indicates system-dep default temporary directory
         return null;
     }
@@ -99,12 +105,14 @@
         return null;
     }
 
-    public static String[] getReaderFormatNames() {
-        throw new UnsupportedOperationException("Not supported yet");
+    public static String[] getReaderFormatNames() throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    public static String[] getReaderMIMETypes() {
-        throw new UnsupportedOperationException("Not supported yet");
+    public static String[] getReaderMIMETypes() throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     public static Iterator<ImageReader> getImageReaders(Object input) {
@@ -139,16 +147,19 @@
         return new SpiIteratorToReadersIteratorWrapper(it);
     }
 
-    public static Iterator<ImageReader> getImageReadersByMIMEType(String MIMEType) {
-        throw new UnsupportedOperationException("Not supported yet");
+    public static Iterator<ImageReader> getImageReadersByMIMEType(String MIMEType) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    public static String[] getWriterFormatNames() {
-        throw new UnsupportedOperationException("Not supported yet");
+    public static String[] getWriterFormatNames() throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    public static String[] getWriterMIMETypes() {
-        throw new UnsupportedOperationException("Not supported yet");
+    public static String[] getWriterMIMETypes() throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     public static Iterator<ImageWriter> getImageWritersByFormatName(String formatName) {
@@ -171,16 +182,19 @@
         return new SpiIteratorToWritersIteratorWrapper(it);
     }
 
-    public static Iterator<ImageWriter> getImageWritersByMIMEType(String MIMEType) {
-        throw new UnsupportedOperationException("Not supported yet");
+    public static Iterator<ImageWriter> getImageWritersByMIMEType(String MIMEType) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    public static ImageWriter getImageWriter(ImageReader reader) {
-        throw new UnsupportedOperationException("Not supported yet");
+    public static ImageWriter getImageWriter(ImageReader reader) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    public static ImageReader getImageReader(ImageWriter writer) {
-        throw new UnsupportedOperationException("Not supported yet");
+    public static ImageReader getImageReader(ImageWriter writer) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     public static Iterator<ImageWriter> getImageWriters(ImageTypeSpecifier type,
@@ -200,8 +214,9 @@
     }
 
     public static Iterator<ImageTranscoder> getImageTranscoders(ImageReader reader,
-                                               ImageWriter writer) {
-        throw new UnsupportedOperationException("Not supported yet");
+                                               ImageWriter writer) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     public static BufferedImage read(File input) throws IOException {

Modified: harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/ImageReader.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/ImageReader.java?rev=601315&r1=601314&r2=601315&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/ImageReader.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/ImageReader.java Wed Dec  5 04:25:42 2007
@@ -26,6 +26,9 @@
 import javax.imageio.event.IIOReadWarningListener;
 import javax.imageio.event.IIOReadProgressListener;
 import javax.imageio.event.IIOReadUpdateListener;
+
+import org.apache.harmony.luni.util.NotImplementedException;
+
 import java.util.Locale;
 import java.util.List;
 import java.util.Iterator;
@@ -125,8 +128,9 @@
         return availableLocales;
     }
 
-    public void setLocale(Locale locale) {
-        throw new UnsupportedOperationException("Not implemented yet");
+    public void setLocale(Locale locale) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     public Locale getLocale() {
@@ -147,28 +151,32 @@
         return (float) getWidth(imageIndex) / getHeight(imageIndex);
     }
 
-    public ImageTypeSpecifier getRawImageType(int imageIndex) throws IOException {
-        throw new UnsupportedOperationException("Not implemented yet");
+    public ImageTypeSpecifier getRawImageType(int imageIndex) throws IOException, NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     public abstract Iterator<ImageTypeSpecifier> getImageTypes(int imageIndex) throws IOException;
 
-    public ImageReadParam getDefaultReadParam() {
-        throw new UnsupportedOperationException("Not implemented yet");
+    public ImageReadParam getDefaultReadParam() throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     public abstract IIOMetadata getStreamMetadata() throws IOException;
 
     public IIOMetadata getStreamMetadata(String formatName, Set<String> nodeNames)
-            throws IOException {
-        throw new UnsupportedOperationException("Not implemented yet");
+            throws IOException, NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     public abstract IIOMetadata getImageMetadata(int imageIndex) throws IOException;
 
     public IIOMetadata getImageMetadata(int imageIndex, String formatName,
-                                        Set<String> nodeNames) throws IOException {
-        throw new UnsupportedOperationException("Not implemented yet");
+                                        Set<String> nodeNames) throws IOException, NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     public BufferedImage read(int imageIndex) throws IOException {
@@ -177,12 +185,14 @@
 
     public abstract BufferedImage read(int imageIndex, ImageReadParam param) throws IOException;
 
-    public IIOImage readAll(int imageIndex, ImageReadParam param) throws IOException {
-        throw new UnsupportedOperationException("Not implemented yet");
+    public IIOImage readAll(int imageIndex, ImageReadParam param) throws IOException, NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    public Iterator<IIOImage> readAll(Iterator<? extends ImageReadParam> params) throws IOException {
-        throw new UnsupportedOperationException("Not implemented yet");
+    public Iterator<IIOImage> readAll(Iterator<? extends ImageReadParam> params) throws IOException, NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     public boolean canReadRaster() {
@@ -213,12 +223,14 @@
         return 0; //def
     }
 
-    public BufferedImage readTile(int imageIndex, int tileX, int tileY) throws IOException {
-        throw new UnsupportedOperationException("Not implemented yet");
+    public BufferedImage readTile(int imageIndex, int tileX, int tileY) throws IOException, NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    public Raster readTileRaster(int imageIndex, int tileX, int tileY) throws IOException {
-        throw new UnsupportedOperationException("Not implemented yet");
+    public Raster readTileRaster(int imageIndex, int tileX, int tileY) throws IOException, NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     public RenderedImage readAsRenderedImage(int imageIndex, ImageReadParam param) throws IOException {
@@ -249,88 +261,109 @@
         throw new UnsupportedOperationException("Unsupported"); //def
     }
 
-    public void abort() {
-        throw new UnsupportedOperationException("Not implemented yet");
+    public void abort() throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    protected boolean abortRequested() {
-        throw new UnsupportedOperationException("Not implemented yet");
+    protected boolean abortRequested() throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    protected void clearAbortRequest() {
-        throw new UnsupportedOperationException("Not implemented yet");
+    protected void clearAbortRequest() throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    public void addIIOReadWarningListener(IIOReadWarningListener listener) {
-        throw new UnsupportedOperationException("Not implemented yet");
+    public void addIIOReadWarningListener(IIOReadWarningListener listener) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    public void removeIIOReadWarningListener(IIOReadWarningListener listener) {
-        throw new UnsupportedOperationException("Not implemented yet");
+    public void removeIIOReadWarningListener(IIOReadWarningListener listener) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    public void removeAllIIOReadWarningListeners() {
-        throw new UnsupportedOperationException("Not implemented yet");
+    public void removeAllIIOReadWarningListeners() throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    public void addIIOReadProgressListener(IIOReadProgressListener listener) {
-        throw new UnsupportedOperationException("Not implemented yet");
+    public void addIIOReadProgressListener(IIOReadProgressListener listener) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    public void removeIIOReadProgressListener(IIOReadProgressListener listener) {
-        throw new UnsupportedOperationException("Not implemented yet");
+    public void removeIIOReadProgressListener(IIOReadProgressListener listener) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    public void removeAllIIOReadProgressListeners() {
-        throw new UnsupportedOperationException("Not implemented yet");
+    public void removeAllIIOReadProgressListeners() throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    public void addIIOReadUpdateListener(IIOReadUpdateListener listener) {
-        throw new UnsupportedOperationException("Not implemented yet");
+    public void addIIOReadUpdateListener(IIOReadUpdateListener listener) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    public void removeIIOReadUpdateListener(IIOReadUpdateListener listener) {
-        throw new UnsupportedOperationException("Not implemented yet");
+    public void removeIIOReadUpdateListener(IIOReadUpdateListener listener) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    public void removeAllIIOReadUpdateListeners() {
-        throw new UnsupportedOperationException("Not implemented yet");
+    public void removeAllIIOReadUpdateListeners() throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    protected void processSequenceStarted(int minIndex) {
-        throw new UnsupportedOperationException("Not implemented yet");
+    protected void processSequenceStarted(int minIndex) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    protected void processSequenceComplete() {
-        throw new UnsupportedOperationException("Not implemented yet");
+    protected void processSequenceComplete() throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    protected void processImageStarted(int imageIndex) {
-        throw new UnsupportedOperationException("Not implemented yet");
+    protected void processImageStarted(int imageIndex) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    protected void processImageProgress(float percentageDone) {
-        throw new UnsupportedOperationException("Not implemented yet");
+    protected void processImageProgress(float percentageDone) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    protected void processImageComplete() {
-        throw new UnsupportedOperationException("Not implemented yet");
+    protected void processImageComplete() throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    protected void processThumbnailStarted(int imageIndex, int thumbnailIndex) {
-        throw new UnsupportedOperationException("Not implemented yet");
+    protected void processThumbnailStarted(int imageIndex, int thumbnailIndex) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    protected void processThumbnailProgress(float percentageDone) {
-        throw new UnsupportedOperationException("Not implemented yet");
+    protected void processThumbnailProgress(float percentageDone) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    protected void processThumbnailComplete() {
-        throw new UnsupportedOperationException("Not implemented yet");
+    protected void processThumbnailComplete() throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    protected void processReadAborted() {
-        throw new UnsupportedOperationException("Not implemented yet");
+    protected void processReadAborted() throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     protected void processPassStarted(BufferedImage theImage,
@@ -341,8 +374,9 @@
                                   int minY,
                                   int periodX,
                                   int periodY,
-                                  int[] bands) {
-        throw new UnsupportedOperationException("Not implemented yet");
+                                  int[] bands) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     protected void processImageUpdate(BufferedImage theImage,
@@ -352,12 +386,14 @@
                                   int height,
                                   int periodX,
                                   int periodY,
-                                  int[] bands) {
-        throw new UnsupportedOperationException("Not implemented yet");
+                                  int[] bands) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    protected void processPassComplete(BufferedImage theImage) {
-        throw new UnsupportedOperationException("Not implemented yet");
+    protected void processPassComplete(BufferedImage theImage) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     protected void processThumbnailPassStarted(BufferedImage theThumbnail,
@@ -368,8 +404,9 @@
                                            int minY,
                                            int periodX,
                                            int periodY,
-                                           int[] bands) {
-        throw new UnsupportedOperationException("Not implemented yet");
+                                           int[] bands) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     protected void processThumbnailUpdate(BufferedImage theThumbnail,
@@ -379,20 +416,24 @@
                                       int height,
                                       int periodX,
                                       int periodY,
-                                       int[] bands) {
-        throw new UnsupportedOperationException("Not implemented yet");
+                                       int[] bands) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    protected void processThumbnailPassComplete(BufferedImage theThumbnail) {
-        throw new UnsupportedOperationException("Not implemented yet");
+    protected void processThumbnailPassComplete(BufferedImage theThumbnail) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    protected void processWarningOccurred(String warning) {
-        throw new UnsupportedOperationException("Not implemented yet");
+    protected void processWarningOccurred(String warning) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    protected void processWarningOccurred(String baseName, String keyword) {
-        throw new UnsupportedOperationException("Not implemented yet");
+    protected void processWarningOccurred(String baseName, String keyword) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     public void reset() {
@@ -409,8 +450,9 @@
         // do nothing by def
     }
 
-    protected static Rectangle getSourceRegion(ImageReadParam param, int srcWidth, int srcHeight) {
-        throw new UnsupportedOperationException("Not implemented yet");
+    protected static Rectangle getSourceRegion(ImageReadParam param, int srcWidth, int srcHeight) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     protected static void computeRegions(ImageReadParam param,
@@ -418,20 +460,23 @@
                                      int srcHeight,
                                      BufferedImage image,
                                      Rectangle srcRegion,
-                                     Rectangle destRegion) {
-        throw new UnsupportedOperationException("Not implemented yet");
+                                     Rectangle destRegion) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     protected static void checkReadParamBandSettings(ImageReadParam param,
                                                  int numSrcBands,
-                                                 int numDstBands) {
-        throw new UnsupportedOperationException("Not implemented yet");
+                                                 int numDstBands) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     protected static BufferedImage getDestination(ImageReadParam param, Iterator<ImageTypeSpecifier> imageTypes,
                                               int width,
                                               int height)
-                                       throws IIOException {
-        throw new UnsupportedOperationException("Not implemented yet");
+                                       throws IIOException, NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 }

Modified: harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/ImageTypeSpecifier.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/ImageTypeSpecifier.java?rev=601315&r1=601314&r2=601315&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/ImageTypeSpecifier.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/ImageTypeSpecifier.java Wed Dec  5 04:25:42 2007
@@ -26,6 +26,8 @@
 import java.awt.image.RenderedImage;
 import java.awt.color.ColorSpace;
 
+import org.apache.harmony.luni.util.NotImplementedException;
+
 /**
  * TODO implement all the methods
  */
@@ -63,16 +65,18 @@
                                                   int blueMask,
                                                   int alphaMask,
                                                   int transferType,
-                                                  boolean isAlphaPremultiplied) {
-        throw new UnsupportedOperationException("Not supported yet");
+                                                  boolean isAlphaPremultiplied) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     public static ImageTypeSpecifier createInterleaved(ColorSpace colorSpace,
                                                        int[] bandOffsets,
                                                        int dataType,
                                                        boolean hasAlpha,
-                                                       boolean isAlphaPremultiplied) {
-        throw new UnsupportedOperationException("Not supported yet");
+                                                       boolean isAlphaPremultiplied) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
 
@@ -81,21 +85,24 @@
                                                   int[] bandOffsets,
                                                   int dataType,
                                                   boolean hasAlpha,
-                                                  boolean isAlphaPremultiplied) {
-        throw new UnsupportedOperationException("Not supported yet");
+                                                  boolean isAlphaPremultiplied) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     public static ImageTypeSpecifier createGrayscale(int bits,
                                                      int dataType,
-                                                     boolean isSigned) {
-        throw new UnsupportedOperationException("Not supported yet");
+                                                     boolean isSigned) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     public static ImageTypeSpecifier createGrayscale(int bits,
                                                      int dataType,
                                                      boolean isSigned,
-                                                     boolean isAlphaPremultiplied) {
-        throw new UnsupportedOperationException("Not supported yet");
+                                                     boolean isAlphaPremultiplied) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     public static ImageTypeSpecifier createIndexed(byte[] redLUT,
@@ -103,12 +110,14 @@
                                                    byte[] blueLUT,
                                                    byte[] alphaLUT,
                                                    int bits,
-                                                   int dataType) {
-        throw new UnsupportedOperationException("Not supported yet");
+                                                   int dataType) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    public static ImageTypeSpecifier createFromBufferedImageType(int bufferedImageType) {
-        throw new UnsupportedOperationException("Not supported yet");
+    public static ImageTypeSpecifier createFromBufferedImageType(int bufferedImageType) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     public static ImageTypeSpecifier createFromRenderedImage(RenderedImage image) {
@@ -118,8 +127,9 @@
         return new ImageTypeSpecifier(image);
     }
 
-    public int getBufferedImageType() {
-        throw new UnsupportedOperationException("Not supported yet");
+    public int getBufferedImageType() throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     public int getNumComponents() {
@@ -152,8 +162,9 @@
         return colorModel;
     }
 
-    public BufferedImage createBufferedImage(int width, int height) {
-        throw new UnsupportedOperationException("Not supported yet");
+    public BufferedImage createBufferedImage(int width, int height) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     @Override

Modified: harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/spi/IIOServiceProvider.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/spi/IIOServiceProvider.java?rev=601315&r1=601314&r2=601315&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/spi/IIOServiceProvider.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/spi/IIOServiceProvider.java Wed Dec  5 04:25:42 2007
@@ -22,6 +22,8 @@
 
 import java.util.Locale;
 
+import org.apache.harmony.luni.util.NotImplementedException;
+
 public abstract class IIOServiceProvider implements RegisterableService {
 
     protected String vendorName;
@@ -38,16 +40,18 @@
         this.version = version;
     }
 
-    public IIOServiceProvider() {
-        throw new UnsupportedOperationException("Not supported yet");
+    public IIOServiceProvider() throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     public void onRegistration(ServiceRegistry registry, Class<?> category) {
         // the default impl. does nothing
     }
 
-    public void onDeregistration(ServiceRegistry registry, Class<?> category) {
-        throw new UnsupportedOperationException("Not supported yet");
+    public void onDeregistration(ServiceRegistry registry, Class<?> category) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     public String getVendorName() {

Modified: harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/spi/ImageInputStreamSpi.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/spi/ImageInputStreamSpi.java?rev=601315&r1=601314&r2=601315&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/spi/ImageInputStreamSpi.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/spi/ImageInputStreamSpi.java Wed Dec  5 04:25:42 2007
@@ -24,12 +24,15 @@
 import java.io.IOException;
 import javax.imageio.stream.ImageInputStream;
 
+import org.apache.harmony.luni.util.NotImplementedException;
+
 public abstract class ImageInputStreamSpi extends IIOServiceProvider implements
         RegisterableService {
     protected Class<?> inputClass;
 
-    protected ImageInputStreamSpi() {
-        throw new UnsupportedOperationException("Not supported yet");
+    protected ImageInputStreamSpi() throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     public ImageInputStreamSpi(String vendorName, String version, Class<?> inputClass) {

Modified: harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/spi/ImageOutputStreamSpi.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/spi/ImageOutputStreamSpi.java?rev=601315&r1=601314&r2=601315&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/spi/ImageOutputStreamSpi.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/spi/ImageOutputStreamSpi.java Wed Dec  5 04:25:42 2007
@@ -21,6 +21,9 @@
 package javax.imageio.spi;
 
 import javax.imageio.stream.ImageOutputStream;
+
+import org.apache.harmony.luni.util.NotImplementedException;
+
 import java.io.IOException;
 import java.io.File;
 
@@ -28,8 +31,9 @@
         RegisterableService {
     protected Class<?> outputClass;
 
-    protected ImageOutputStreamSpi() {
-        throw new UnsupportedOperationException("Not supported yet");
+    protected ImageOutputStreamSpi() throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     public ImageOutputStreamSpi(String vendorName, String version, Class<?> outputClass) {

Modified: harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/spi/ImageReaderSpi.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/spi/ImageReaderSpi.java?rev=601315&r1=601314&r2=601315&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/spi/ImageReaderSpi.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/spi/ImageReaderSpi.java Wed Dec  5 04:25:42 2007
@@ -22,6 +22,9 @@
 
 import javax.imageio.stream.ImageInputStream;
 import javax.imageio.ImageReader;
+
+import org.apache.harmony.luni.util.NotImplementedException;
+
 import java.io.IOException;
 
 public abstract class ImageReaderSpi extends ImageReaderWriterSpi {
@@ -31,8 +34,9 @@
     protected Class[] inputTypes;
     protected String[] writerSpiNames;
 
-    protected ImageReaderSpi() {
-        throw new UnsupportedOperationException("Not supported yet");
+    protected ImageReaderSpi() throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     public ImageReaderSpi(String vendorName, String version, String[] names, String[] suffixes,
@@ -74,11 +78,13 @@
 
     public abstract ImageReader createReaderInstance(Object extension) throws IOException;
 
-    public boolean isOwnReader(ImageReader reader) {
-        throw new UnsupportedOperationException("Not supported yet");
+    public boolean isOwnReader(ImageReader reader) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    public String[] getImageWriterSpiNames() {
-        throw new UnsupportedOperationException("Not supported yet");
+    public String[] getImageWriterSpiNames() throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 }

Modified: harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/spi/ImageWriterSpi.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/spi/ImageWriterSpi.java?rev=601315&r1=601314&r2=601315&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/spi/ImageWriterSpi.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/spi/ImageWriterSpi.java Wed Dec  5 04:25:42 2007
@@ -23,6 +23,9 @@
 import javax.imageio.stream.ImageInputStream;
 import javax.imageio.ImageTypeSpecifier;
 import javax.imageio.ImageWriter;
+
+import org.apache.harmony.luni.util.NotImplementedException;
+
 import java.awt.image.RenderedImage;
 import java.io.IOException;
 
@@ -33,8 +36,9 @@
     protected Class[] outputTypes;
     protected String[] readerSpiNames;
 
-    protected ImageWriterSpi() {
-        throw new UnsupportedOperationException("Not supported yet");
+    protected ImageWriterSpi() throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     public ImageWriterSpi(String vendorName, String version, String[] names,
@@ -86,8 +90,9 @@
 
     public abstract ImageWriter createWriterInstance(Object extension) throws IOException;
 
-    public boolean isOwnWriter(ImageWriter writer) {
-        throw new UnsupportedOperationException("Not supported yet");
+    public boolean isOwnWriter(ImageWriter writer) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     public String[] getImageReaderSpiNames() {

Modified: harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/spi/ServiceRegistry.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/spi/ServiceRegistry.java?rev=601315&r1=601314&r2=601315&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/spi/ServiceRegistry.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/spi/ServiceRegistry.java Wed Dec  5 04:25:42 2007
@@ -23,6 +23,8 @@
 import java.util.*;
 import java.util.Map.Entry;
 
+import org.apache.harmony.luni.util.NotImplementedException;
+
 /**
  * TODO: add all the methods from the spec
  */
@@ -40,8 +42,9 @@
         }
     }
 
-    public static <T> Iterator<T> lookupProviders(Class<T> providerClass, ClassLoader loader) {
-        throw new UnsupportedOperationException("Not supported yet");
+    public static <T> Iterator<T> lookupProviders(Class<T> providerClass, ClassLoader loader) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     public static <T> Iterator<T> lookupProviders(Class<T> providerClass) {
@@ -62,12 +65,14 @@
         categories.addProvider(provider, null);
     }
 
-    public <T> boolean deregisterServiceProvider(T provider, Class<T> category) {
-        throw new UnsupportedOperationException("Not supported yet");
+    public <T> boolean deregisterServiceProvider(T provider, Class<T> category) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    public void deregisterServiceProvider(Object provider) {
-        throw new UnsupportedOperationException("Not supported yet");
+    public void deregisterServiceProvider(Object provider) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     @SuppressWarnings("unchecked")
@@ -80,24 +85,29 @@
         return (Iterator<T>)categories.getProviders(category, useOrdering);
     }
 
-    public <T> T getServiceProviderByClass(Class<T> providerClass) {
-        throw new UnsupportedOperationException("Not supported yet");
+    public <T> T getServiceProviderByClass(Class<T> providerClass) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    public <T> boolean setOrdering(Class<T> category, T firstProvider, T secondProvider) {
-        throw new UnsupportedOperationException("Not supported yet");
+    public <T> boolean setOrdering(Class<T> category, T firstProvider, T secondProvider) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    public <T> boolean unsetOrdering(Class<T> category, T firstProvider, T secondProvider) {
-        throw new UnsupportedOperationException("Not supported yet");
+    public <T> boolean unsetOrdering(Class<T> category, T firstProvider, T secondProvider) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    public void deregisterAll(Class<?> category) {
-        throw new UnsupportedOperationException("Not supported yet");
+    public void deregisterAll(Class<?> category) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    public void deregisterAll() {
-        throw new UnsupportedOperationException("Not supported yet");
+    public void deregisterAll() throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     @Override
@@ -106,8 +116,9 @@
         //deregisterAll();
     }
 
-    public boolean contains(Object provider) {
-        throw new UnsupportedOperationException("Not supported yet");
+    public boolean contains(Object provider) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     public Iterator<Class<?>> getCategories() {

Modified: harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/stream/ImageOutputStreamImpl.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/stream/ImageOutputStreamImpl.java?rev=601315&r1=601314&r2=601315&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/stream/ImageOutputStreamImpl.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/javax/imageio/stream/ImageOutputStreamImpl.java Wed Dec  5 04:25:42 2007
@@ -25,6 +25,8 @@
 import java.io.IOException;
 import java.nio.ByteOrder;
 
+import org.apache.harmony.luni.util.NotImplementedException;
+
 public abstract class ImageOutputStreamImpl extends ImageInputStreamImpl
 		implements ImageOutputStream {
 
@@ -189,22 +191,22 @@
 		}
 	}
 
-	public void writeBit(int bit) throws IOException {
-		// -- TODO implement
-		throw new UnsupportedOperationException("Not implemented yet");
+	public void writeBit(int bit) throws IOException, NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
 	}
 
-	public void writeBits(long bits, int numBits) throws IOException {
-		// -- TODO implement
-		throw new UnsupportedOperationException("Not implemented yet");
+	public void writeBits(long bits, int numBits) throws IOException, NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
 	}
 
-	protected final void flushBits() throws IOException {
+	protected final void flushBits() throws IOException, NotImplementedException {
 		if (bitOffset == 0) {
 			return;
 		}
 
-		// -- TODO implement
-		throw new UnsupportedOperationException("Not implemented yet");
+		// TODO: implement
+        throw new NotImplementedException();
 	}
 }

Modified: harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/jpeg/JPEGImageReader.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/jpeg/JPEGImageReader.java?rev=601315&r1=601314&r2=601315&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/jpeg/JPEGImageReader.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/jpeg/JPEGImageReader.java Wed Dec  5 04:25:42 2007
@@ -31,6 +31,7 @@
 
 import org.apache.harmony.awt.gl.image.DecodingImageSource;
 import org.apache.harmony.awt.gl.image.OffscreenImage;
+import org.apache.harmony.luni.util.NotImplementedException;
 
 import java.io.IOException;
 import java.util.Iterator;
@@ -54,39 +55,39 @@
     }
 
     @Override
-    public int getHeight(int i) throws IOException {
-        //-- TODO implement
-        throw new UnsupportedOperationException("not implemented yet");
+    public int getHeight(int i) throws IOException, NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     @Override
-    public int getWidth(int i) throws IOException {
-        //-- TODO implement
-        throw new UnsupportedOperationException("not implemented yet");
+    public int getWidth(int i) throws IOException, NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     @Override
-    public int getNumImages(boolean b) throws IOException {
-        //-- TODO implement
-        throw new UnsupportedOperationException("not implemented yet");
+    public int getNumImages(boolean b) throws IOException, NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     @Override
-    public Iterator<ImageTypeSpecifier> getImageTypes(int i) throws IOException {
-        //-- TODO implement
-        throw new UnsupportedOperationException("not implemented yet");
+    public Iterator<ImageTypeSpecifier> getImageTypes(int i) throws IOException, NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     @Override
-    public IIOMetadata getStreamMetadata() throws IOException {
-        //-- TODO implement
-        throw new UnsupportedOperationException("not implemented yet");
+    public IIOMetadata getStreamMetadata() throws IOException, NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     @Override
-    public IIOMetadata getImageMetadata(int i) throws IOException {
-        //-- TODO implement
-        throw new UnsupportedOperationException("not implemented yet");
+    public IIOMetadata getImageMetadata(int i) throws IOException, NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     @Override

Modified: harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/jpeg/JPEGImageWriter.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/jpeg/JPEGImageWriter.java?rev=601315&r1=601314&r2=601315&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/jpeg/JPEGImageWriter.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/jpeg/JPEGImageWriter.java Wed Dec  5 04:25:42 2007
@@ -28,6 +28,9 @@
 import javax.imageio.stream.ImageOutputStream;
 import javax.imageio.spi.ImageWriterSpi;
 import javax.imageio.metadata.IIOMetadata;
+
+import org.apache.harmony.luni.util.NotImplementedException;
+
 import java.io.IOException;
 import java.awt.image.*;
 import java.awt.*;
@@ -166,22 +169,26 @@
     }
 
 
-    public IIOMetadata getDefaultStreamMetadata(ImageWriteParam imageWriteParam) {
-        throw new UnsupportedOperationException("not supported yet");
+    public IIOMetadata getDefaultStreamMetadata(ImageWriteParam imageWriteParam) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    public IIOMetadata getDefaultImageMetadata(ImageTypeSpecifier imageTypeSpecifier, ImageWriteParam imageWriteParam) {
-        throw new UnsupportedOperationException("not supported yet");
+    public IIOMetadata getDefaultImageMetadata(ImageTypeSpecifier imageTypeSpecifier, ImageWriteParam imageWriteParam) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     @Override
-    public IIOMetadata convertStreamMetadata(IIOMetadata iioMetadata, ImageWriteParam imageWriteParam) {
-        throw new UnsupportedOperationException("not supported yet");
+    public IIOMetadata convertStreamMetadata(IIOMetadata iioMetadata, ImageWriteParam imageWriteParam) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     @Override
-    public IIOMetadata convertImageMetadata(IIOMetadata iioMetadata, ImageTypeSpecifier imageTypeSpecifier, ImageWriteParam imageWriteParam) {
-        throw new UnsupportedOperationException("not supported yet");
+    public IIOMetadata convertImageMetadata(IIOMetadata iioMetadata, ImageTypeSpecifier imageTypeSpecifier, ImageWriteParam imageWriteParam) throws NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     @Override
@@ -270,6 +277,7 @@
         }
 
         if (cm instanceof IndexColorModel) {
+            // TODO: implement
             throw new UnsupportedOperationException("IndexColorModel is not supported yet");
         }
 

Modified: harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/png/PNGImageReader.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/png/PNGImageReader.java?rev=601315&r1=601314&r2=601315&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/png/PNGImageReader.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/png/PNGImageReader.java Wed Dec  5 04:25:42 2007
@@ -20,6 +20,7 @@
 
 import org.apache.harmony.awt.gl.image.DecodingImageSource;
 import org.apache.harmony.awt.gl.image.OffscreenImage;
+import org.apache.harmony.luni.util.NotImplementedException;
 import org.apache.harmony.x.imageio.plugins.jpeg.IISDecodingImageSource;
 
 import javax.imageio.ImageReader;
@@ -40,36 +41,36 @@
         super(imageReaderSpi);
     }
 
-    public int getNumImages(boolean allowSearch) throws IOException {
-        //-- TODO implement
-        throw new UnsupportedOperationException("not implemented yet");
+    public int getNumImages(boolean allowSearch) throws IOException, NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    public int getWidth(int imageIndex) throws IOException {
-        //-- TODO implement
-        throw new UnsupportedOperationException("not implemented yet");
+    public int getWidth(int imageIndex) throws IOException, NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    public int getHeight(int imageIndex) throws IOException {
-        //-- TODO implement
-        throw new UnsupportedOperationException("not implemented yet");
+    public int getHeight(int imageIndex) throws IOException, NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
-    public Iterator<ImageTypeSpecifier> getImageTypes(int imageIndex) throws IOException {
-        //-- TODO implement
-        throw new UnsupportedOperationException("not implemented yet");
+    public Iterator<ImageTypeSpecifier> getImageTypes(int imageIndex) throws IOException, NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     @Override
-    public IIOMetadata getStreamMetadata() throws IOException {
-        //-- TODO implement
-        throw new UnsupportedOperationException("not implemented yet");
+    public IIOMetadata getStreamMetadata() throws IOException, NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     @Override
-    public IIOMetadata getImageMetadata(int imageIndex) throws IOException {
-        //-- TODO implement
-        throw new UnsupportedOperationException("not implemented yet");
+    public IIOMetadata getImageMetadata(int imageIndex) throws IOException, NotImplementedException {
+        // TODO: implement
+        throw new NotImplementedException();
     }
 
     @Override

Modified: harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/png/PNGImageWriter.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/png/PNGImageWriter.java?rev=601315&r1=601314&r2=601315&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/png/PNGImageWriter.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/png/PNGImageWriter.java Wed Dec  5 04:25:42 2007
@@ -75,22 +75,26 @@
     }
 
     @Override
-    public IIOMetadata convertStreamMetadata(IIOMetadata arg0, ImageWriteParam arg1) {
+    public IIOMetadata convertStreamMetadata(IIOMetadata arg0, ImageWriteParam arg1) throws NotImplementedException {
+        // TODO: implement
         throw new NotImplementedException();
     }
 
     @Override
-    public IIOMetadata convertImageMetadata(IIOMetadata arg0, ImageTypeSpecifier arg1, ImageWriteParam arg2) {
+    public IIOMetadata convertImageMetadata(IIOMetadata arg0, ImageTypeSpecifier arg1, ImageWriteParam arg2) throws NotImplementedException {
+        // TODO: implement
         throw new NotImplementedException();
     }
 
     @Override
-    public IIOMetadata getDefaultImageMetadata(ImageTypeSpecifier arg0, ImageWriteParam arg1) {
+    public IIOMetadata getDefaultImageMetadata(ImageTypeSpecifier arg0, ImageWriteParam arg1) throws NotImplementedException {
+        // TODO: implement
         throw new NotImplementedException();
     }
 
     @Override
-    public IIOMetadata getDefaultStreamMetadata(ImageWriteParam arg0) {
+    public IIOMetadata getDefaultStreamMetadata(ImageWriteParam arg0) throws NotImplementedException {
+        // TODO: implement
         throw new NotImplementedException();
     }
 

Modified: harmony/enhanced/classlib/branches/java6/modules/jndi/src/main/java/org/apache/harmony/jndi/internal/nls/messages.properties
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/jndi/src/main/java/org/apache/harmony/jndi/internal/nls/messages.properties?rev=601315&r1=601314&r2=601315&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/jndi/src/main/java/org/apache/harmony/jndi/internal/nls/messages.properties (original)
+++ harmony/enhanced/classlib/branches/java6/modules/jndi/src/main/java/org/apache/harmony/jndi/internal/nls/messages.properties Wed Dec  5 04:25:42 2007
@@ -178,6 +178,7 @@
 ldap.0E=[LDAP: error code 7 - Authentication method not supported]
 ldap.0F=[LDAP: error code 8 - strongAuthRequired: refused to return sorted results via insecure protocol]
 ldap.10=[LDAP: error code 9 - Partial results being returned]
+ldap.1A=[LDAP: error code 10 - Referral]
 ldap.1B=[LDAP: error code 11 - adminLimitExceeded: too many matching entries for the server to sort]
 ldap.1C=[LDAP: error code 16 - noSuchAttribute: unrecognized attribute type in sort key]
 ldap.11=[LDAP: error code 18 - inappropriateMatching: unrecognized or inappropriate matching rule in sort key]
@@ -199,12 +200,19 @@
 ldap.21=was not found
 ldap.22=foundObjects is null
 ldap.23= not found in jar file 
+ldap.24=can only bind Reference, Referenceable, Serializable, DirContext 
+ldap.25=limit of following in a chain of referrals is exceeded.
 ldap.26=Only instances of CompositeName class or LdapName class are acceptable
+ldap.27=Non-null ModificationItem is required for modification
 ldap.28=Parameter of filter should not be null
 ldap.29=Invalid search filter
-ldap.30=Illegal value: {0} for {1} property
-ldap.34=[LDAP: error code {0} - {1}]
-ldap.35=[LDAP: error code {0}]
+ldap.2A=old name and new name should be in same namespace
 ldap.2B=LDAP URL should not be null
 ldap.2C=Invalid LDAP URL
 ldap.2D=LDAP URL may only contain host, port and dn components
+ldap.30=Illegal value: {0} for {1} property
+ldap.31=Read LDAP response message time out
+ldap.32=Target cannot span multiple namespaces: {0}
+ldap.33=Scope should be one of 'OBJECT_SCOPE', 'ONELEVEL_SCOPE' or 'SUBTREE_SCOPE'
+ldap.34=[LDAP: error code {0} - {1}]
+ldap.35=[LDAP: error code {0}]

Modified: harmony/enhanced/classlib/branches/java6/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/ldap/ExtendedOp.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/ldap/ExtendedOp.java?rev=601315&r1=601314&r2=601315&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/ldap/ExtendedOp.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/ldap/ExtendedOp.java Wed Dec  5 04:25:42 2007
@@ -34,6 +34,8 @@
     private ExtendedResponse response;
 
     private LdapResult result;
+    
+    private Object[] responseValues;
 
     public ExtendedOp(ExtendedRequest request) {
         this.request = request;
@@ -60,6 +62,26 @@
     }
 
     public ExtendedResponse getExtendedResponse() {
+
+        if (result != null && result.getResultCode() == 0
+                && responseValues != null) {
+            String id = null;
+            if (responseValues[4] != null) {
+                id = Utils.getString((byte[]) responseValues[4]);
+            }
+            byte[] value = (byte[]) responseValues[5];
+            int length = 0;
+            if (value != null) {
+                length = value.length;
+            }
+            
+            try {
+                response = request.createExtendedResponse(id, value, 0, length);
+            } catch (NamingException e) {
+                // FIXME: how to deal with this exception
+                e.printStackTrace();
+            }
+        }
         return response;
     }
 
@@ -74,16 +96,7 @@
 
     public void decodeValues(Object[] values) {
         result = new LdapResult();
-        result.decodeValues(values);
-        if (values[4] != null) {
-            String id = Utils.getString((byte[]) values[4]);
-            byte[] value = (byte[]) values[5];
-            try {
-                response = request.createExtendedResponse(id, value, 0,
-                        value.length);
-            } catch (NamingException e) {
-                // FIXME: how to deal with this exception
-            }
-        }
+        result.decodeValues(values);       
+        this.responseValues = values;
     }
 }

Modified: harmony/enhanced/classlib/branches/java6/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/ldap/LdapAttribute.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/ldap/LdapAttribute.java?rev=601315&r1=601314&r2=601315&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/ldap/LdapAttribute.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/ldap/LdapAttribute.java Wed Dec  5 04:25:42 2007
@@ -29,7 +29,7 @@
 import javax.naming.directory.BasicAttribute;
 import javax.naming.directory.DirContext;
 
-import org.apache.harmony.accessibility.internal.nls.Messages;
+import org.apache.harmony.jndi.internal.nls.Messages;
 import org.apache.harmony.jndi.provider.ldap.asn1.ASN1Decodable;
 import org.apache.harmony.jndi.provider.ldap.asn1.ASN1Encodable;
 import org.apache.harmony.jndi.provider.ldap.asn1.Utils;

Modified: harmony/enhanced/classlib/branches/java6/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/ldap/LdapClient.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/ldap/LdapClient.java?rev=601315&r1=601314&r2=601315&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/ldap/LdapClient.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/ldap/LdapClient.java Wed Dec  5 04:25:42 2007
@@ -246,11 +246,12 @@
                                     .getExtendedRequest().getID().equals(
                                             StartTlsRequest.OID)) {
                         /*
-                         * When establishing TLS by StartTls extended operation, no 
+                         * When establishing TLS by StartTls extended operation,
+                         * no
                          */
                         isStopped = true;
                     }
-                    
+
                     synchronized (element.lock) {
                         element.lock.notify();
                     }
@@ -347,16 +348,24 @@
      */
     private LdapMessage waitResponse(Integer messageID, Object lock)
             throws IOException {
+        Element element = requests.get(messageID);
 
-        synchronized (lock) {
-            try {
-                lock.wait(MAX_WAIT_TIME);
-            } catch (InterruptedException e) {
-                // ignore
+        /*
+         * test if dispatcher has not received response message from server,
+         * wait response
+         */
+        if (element.response.getMessageId() != messageID.intValue()) {
+
+            synchronized (lock) {
+                try {
+                    lock.wait(MAX_WAIT_TIME);
+                } catch (InterruptedException e) {
+                    // ignore
+                }
             }
         }
-
-        Element element = requests.get(messageID);
+        
+        element = requests.get(messageID);
 
         // wait time out
         if (element.response.getMessageId() != messageID.intValue()) {
@@ -669,7 +678,7 @@
     protected void finalize() {
         close();
     }
-    
+
     public Socket getSocket() {
         return this.socket;
     }



Mime
View raw message