diff dwt/internal/image/PNGFileFormat.d @ 6:b903c16b6f48

Removed throws decls
author Frank Benoit <benoit@tionex.de>
date Wed, 27 Aug 2008 14:10:03 +0200
parents 380af2bdd8e5
children e831403a80a9
line wrap: on
line diff
--- a/dwt/internal/image/PNGFileFormat.d	Wed Aug 27 14:02:31 2008 +0200
+++ b/dwt/internal/image/PNGFileFormat.d	Wed Aug 27 14:10:03 2008 +0200
@@ -37,7 +37,7 @@
  * Skip over signature data. This has already been
  * verified in isFileFormat(). 
  */
-void readSignature() throws IOException {
+void readSignature() {
     byte[] signature = new byte[SIGNATURE_LENGTH];
     inputStream.read(signature);
 }
@@ -90,7 +90,7 @@
  * Read and handle the next chunk of data from the 
  * PNG file.
  */
-void readNextChunk(PngChunkReader chunkReader) throws IOException {
+void readNextChunk(PngChunkReader chunkReader) {
     PngChunk chunk = chunkReader.readNextChunk();
     switch (chunk.getChunkType()) {
         case PngChunk.CHUNK_IEND:
@@ -293,7 +293,7 @@
  * Read the image data from the data stream. This must handle
  * decoding the data, filtering, and interlacing.
  */
-void readPixelData(PngIdatChunk chunk, PngChunkReader chunkReader) throws IOException {
+void readPixelData(PngIdatChunk chunk, PngChunkReader chunkReader) {
     InputStream stream = new PngInputStream(chunk, chunkReader);
     //TEMPORARY CODE
     bool use3_2 = System.getProperty("dwt.internal.image.PNGFileFormat_3.2") !is null;
@@ -366,7 +366,7 @@
     int columnInterval,
     int startRow,
     int startColumn,
-    int frameCount) throws IOException 
+    int frameCount)
 {
     int width = headerChunk.getWidth();
     int alignedBytesPerRow = getAlignedBytesPerRow();
@@ -428,7 +428,7 @@
  * Read the pixel data for an interlaced image from the
  * data stream.
  */
-void readInterlacedImage(InputStream inputStream) throws IOException {
+void readInterlacedImage(InputStream inputStream) {
     readInterlaceFrame(inputStream, 8, 8, 0, 0, 0);
     readInterlaceFrame(inputStream, 8, 8, 0, 4, 1); 
     readInterlaceFrame(inputStream, 8, 4, 4, 0, 2); 
@@ -455,7 +455,7 @@
  * data stream.
  * Update the imageData to reflect the new data.
  */
-void readNonInterlacedImage(InputStream inputStream) throws IOException {
+void readNonInterlacedImage(InputStream inputStream) {
     int dataOffset = 0;
     int alignedBytesPerRow = getAlignedBytesPerRow();
     int bytesPerRow = getBytesPerRow();