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

Removed throws decls
author Frank Benoit <benoit@tionex.de>
date Wed, 27 Aug 2008 14:10:03 +0200
parents 1a8b3cb347e0
children e831403a80a9
line wrap: on
line diff
--- a/dwt/internal/image/PngDecodingDataStream.d	Wed Aug 27 14:02:31 2008 +0200
+++ b/dwt/internal/image/PngDecodingDataStream.d	Wed Aug 27 14:10:03 2008 +0200
@@ -27,7 +27,7 @@
     static final int PRIME = 65521;
     static final int MAX_BIT = 7;       
     
-this(InputStream stream) throws IOException {
+this(InputStream stream) {
     super();
     this.stream = stream;
     nextBitIndex = MAX_BIT + 1;
@@ -44,16 +44,16 @@
  * block marker. If there are more blocks after this one,
  * the method will read them and ensure that they are empty.
  */
-void assertImageDataAtEnd() throws IOException {
+void assertImageDataAtEnd() {
     lzBlockReader.assertCompressedDataAtEnd();
 }
 
-public void close() throws IOException {
+public void close() {
     assertImageDataAtEnd();
     checkAdler();
 }
 
-int getNextIdatBits(int length) throws IOException {
+int getNextIdatBits(int length) {
     int value = 0;
     for (int i = 0; i < length; i++) {
         value |= (getNextIdatBit() << i);
@@ -61,7 +61,7 @@
     return value;
 }
 
-int getNextIdatBit() throws IOException {
+int getNextIdatBit() {
     if (nextBitIndex > MAX_BIT) {
         currentByte = getNextIdatByte();
         nextBitIndex = 0;
@@ -69,7 +69,7 @@
     return (currentByte & (1 << nextBitIndex)) >> nextBitIndex++;
 }
 
-byte getNextIdatByte() throws IOException { 
+byte getNextIdatByte() { 
     byte nextByte = (byte)stream.read();
     nextBitIndex = MAX_BIT + 1;
     return nextByte;
@@ -84,13 +84,13 @@
     adlerValue = (high << 16) | low;
 }
 
-public int read() throws IOException {
+public int read() {
     byte nextDecodedByte = lzBlockReader.getNextByte();
     updateAdler(nextDecodedByte);
     return nextDecodedByte & 0xFF;
 }
 
-public int read(byte[] buffer, int off, int len) throws IOException {
+public int read(byte[] buffer, int off, int len) {
     for (int i = 0; i < len; i++) {
         int b = read();
         if (b is -1) return i;
@@ -103,7 +103,7 @@
     DWT.error(DWT.ERROR_INVALID_IMAGE);
 }
 
-private void readCompressedDataHeader() throws IOException {
+private void readCompressedDataHeader() {
     byte headerByte1 = getNextIdatByte();
     byte headerByte2 = getNextIdatByte();
     
@@ -124,7 +124,7 @@
 //  int compressionLevel = (headerByte2 & 0xC0) >> 6;
 }
 
-void checkAdler() throws IOException {
+void checkAdler() {
     int storedAdler = ((getNextIdatByte() & 0xFF) << 24)
         | ((getNextIdatByte() & 0xFF) << 16)
         | ((getNextIdatByte() & 0xFF) << 8)