You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by ap...@apache.org on 2007/11/30 12:11:48 UTC
svn commit: r599773 - in
/harmony/enhanced/classlib/trunk/modules/imageio/src/main/java:
javax/imageio/ javax/imageio/spi/ javax/imageio/stream/
org/apache/harmony/x/imageio/plugins/jpeg/
org/apache/harmony/x/imageio/plugins/png/
Author: apavlenko
Date: Fri Nov 30 03:11:35 2007
New Revision: 599773
URL: http://svn.apache.org/viewvc?rev=599773&view=rev
Log:
Changed signatures of unimplemented methods to be recognizable by Japi tool
Modified:
harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/IIOParam.java
harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/ImageIO.java
harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/ImageReader.java
harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/ImageTypeSpecifier.java
harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/spi/IIOServiceProvider.java
harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/spi/ImageInputStreamSpi.java
harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/spi/ImageOutputStreamSpi.java
harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/spi/ImageReaderSpi.java
harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/spi/ImageWriterSpi.java
harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/spi/ServiceRegistry.java
harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/stream/ImageOutputStreamImpl.java
harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/jpeg/JPEGImageReader.java
harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/jpeg/JPEGImageWriter.java
harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/png/PNGImageReader.java
harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/png/PNGImageWriter.java
Modified: harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/IIOParam.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/IIOParam.java?rev=599773&r1=599772&r2=599773&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/IIOParam.java (original)
+++ harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/IIOParam.java Fri Nov 30 03:11:35 2007
@@ -22,6 +22,8 @@
import java.awt.*;
+import org.apache.harmony.luni.util.NotImplementedException;
+
public abstract class IIOParam {
protected Rectangle sourceRegion;
protected int sourceXSubsampling = 1;
@@ -123,24 +125,24 @@
return subsamplingYOffset;
}
- public void setSourceBands(int[] sourceBands) {
+ public void setSourceBands(int[] sourceBands) throws NotImplementedException {
// TODO implement
- throw new UnsupportedOperationException("not implemented yet");
+ throw new NotImplementedException();
}
- public int[] getSourceBands() {
+ public int[] getSourceBands() throws NotImplementedException {
// TODO implement
- throw new UnsupportedOperationException("not implemented yet");
+ throw new NotImplementedException();
}
- public void setDestinationType(ImageTypeSpecifier destinationType) {
+ public void setDestinationType(ImageTypeSpecifier destinationType) throws NotImplementedException {
// TODO implement
- throw new UnsupportedOperationException("not implemented yet");
+ throw new NotImplementedException();
}
- public ImageTypeSpecifier getDestinationType() {
+ public ImageTypeSpecifier getDestinationType() throws NotImplementedException {
// TODO implement
- throw new UnsupportedOperationException("not implemented yet");
+ throw new NotImplementedException();
}
public void setDestinationOffset(Point destinationOffset) {
@@ -155,28 +157,28 @@
return (Point) destinationOffset.clone();
}
- public void setController(IIOParamController controller) {
+ public void setController(IIOParamController controller) throws NotImplementedException {
// TODO implement
- throw new UnsupportedOperationException("not implemented yet");
+ throw new NotImplementedException();
}
- public IIOParamController getController() {
+ public IIOParamController getController() throws NotImplementedException {
// TODO implement
- throw new UnsupportedOperationException("not implemented yet");
+ throw new NotImplementedException();
}
- public IIOParamController getDefaultController() {
+ public IIOParamController getDefaultController() throws NotImplementedException {
// TODO implement
- throw new UnsupportedOperationException("not implemented yet");
+ throw new NotImplementedException();
}
- public boolean hasController() {
+ public boolean hasController() throws NotImplementedException {
// TODO implement
- throw new UnsupportedOperationException("not implemented yet");
+ throw new NotImplementedException();
}
- public boolean activateController() {
+ public boolean activateController() throws NotImplementedException {
// TODO implement
- throw new UnsupportedOperationException("not implemented yet");
+ throw new NotImplementedException();
}
}
Modified: harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/ImageIO.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/ImageIO.java?rev=599773&r1=599772&r2=599773&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/ImageIO.java (original)
+++ harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/ImageIO.java Fri Nov 30 03:11:35 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/trunk/modules/imageio/src/main/java/javax/imageio/ImageReader.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/ImageReader.java?rev=599773&r1=599772&r2=599773&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/ImageReader.java (original)
+++ harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/ImageReader.java Fri Nov 30 03:11:35 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/trunk/modules/imageio/src/main/java/javax/imageio/ImageTypeSpecifier.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/ImageTypeSpecifier.java?rev=599773&r1=599772&r2=599773&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/ImageTypeSpecifier.java (original)
+++ harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/ImageTypeSpecifier.java Fri Nov 30 03:11:35 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/trunk/modules/imageio/src/main/java/javax/imageio/spi/IIOServiceProvider.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/spi/IIOServiceProvider.java?rev=599773&r1=599772&r2=599773&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/spi/IIOServiceProvider.java (original)
+++ harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/spi/IIOServiceProvider.java Fri Nov 30 03:11:35 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/trunk/modules/imageio/src/main/java/javax/imageio/spi/ImageInputStreamSpi.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/spi/ImageInputStreamSpi.java?rev=599773&r1=599772&r2=599773&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/spi/ImageInputStreamSpi.java (original)
+++ harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/spi/ImageInputStreamSpi.java Fri Nov 30 03:11:35 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/trunk/modules/imageio/src/main/java/javax/imageio/spi/ImageOutputStreamSpi.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/spi/ImageOutputStreamSpi.java?rev=599773&r1=599772&r2=599773&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/spi/ImageOutputStreamSpi.java (original)
+++ harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/spi/ImageOutputStreamSpi.java Fri Nov 30 03:11:35 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/trunk/modules/imageio/src/main/java/javax/imageio/spi/ImageReaderSpi.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/spi/ImageReaderSpi.java?rev=599773&r1=599772&r2=599773&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/spi/ImageReaderSpi.java (original)
+++ harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/spi/ImageReaderSpi.java Fri Nov 30 03:11:35 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/trunk/modules/imageio/src/main/java/javax/imageio/spi/ImageWriterSpi.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/spi/ImageWriterSpi.java?rev=599773&r1=599772&r2=599773&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/spi/ImageWriterSpi.java (original)
+++ harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/spi/ImageWriterSpi.java Fri Nov 30 03:11:35 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/trunk/modules/imageio/src/main/java/javax/imageio/spi/ServiceRegistry.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/spi/ServiceRegistry.java?rev=599773&r1=599772&r2=599773&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/spi/ServiceRegistry.java (original)
+++ harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/spi/ServiceRegistry.java Fri Nov 30 03:11:35 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/trunk/modules/imageio/src/main/java/javax/imageio/stream/ImageOutputStreamImpl.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/stream/ImageOutputStreamImpl.java?rev=599773&r1=599772&r2=599773&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/stream/ImageOutputStreamImpl.java (original)
+++ harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/javax/imageio/stream/ImageOutputStreamImpl.java Fri Nov 30 03:11:35 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/trunk/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/jpeg/JPEGImageReader.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/jpeg/JPEGImageReader.java?rev=599773&r1=599772&r2=599773&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/jpeg/JPEGImageReader.java (original)
+++ harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/jpeg/JPEGImageReader.java Fri Nov 30 03:11:35 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/trunk/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/jpeg/JPEGImageWriter.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/jpeg/JPEGImageWriter.java?rev=599773&r1=599772&r2=599773&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/jpeg/JPEGImageWriter.java (original)
+++ harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/jpeg/JPEGImageWriter.java Fri Nov 30 03:11:35 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/trunk/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/png/PNGImageReader.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/png/PNGImageReader.java?rev=599773&r1=599772&r2=599773&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/png/PNGImageReader.java (original)
+++ harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/png/PNGImageReader.java Fri Nov 30 03:11:35 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/trunk/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/png/PNGImageWriter.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/png/PNGImageWriter.java?rev=599773&r1=599772&r2=599773&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/png/PNGImageWriter.java (original)
+++ harmony/enhanced/classlib/trunk/modules/imageio/src/main/java/org/apache/harmony/x/imageio/plugins/png/PNGImageWriter.java Fri Nov 30 03:11:35 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();
}