Mercurial > projects > dwt-mac
diff dwt/internal/image/TIFFDirectory.d @ 6:b903c16b6f48
Removed throws decls
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 27 Aug 2008 14:10:03 +0200 |
parents | 1a8b3cb347e0 |
children | 5123b17c98ef |
line wrap: on
line diff
--- a/dwt/internal/image/TIFFDirectory.d Wed Aug 27 14:02:31 2008 +0200 +++ b/dwt/internal/image/TIFFDirectory.d Wed Aug 27 14:10:03 2008 +0200 @@ -115,7 +115,7 @@ return toInt(buffer, index + 8, type); } -void getEntryValue(int type, byte[] buffer, int index, int[] values) throws IOException { +void getEntryValue(int type, byte[] buffer, int index, int[] values) { int start = index + 8; int size; int offset = toInt(buffer, start, TYPE_LONG); @@ -138,7 +138,7 @@ } } -void decodePixels(ImageData image) throws IOException { +void decodePixels(ImageData image) { /* Each row is byte aligned */ byte[] imageData = new byte[(imageWidth * depth + 7) / 8 * imageLength]; image.data = imageData; @@ -169,7 +169,7 @@ } } -PaletteData getColorMap() throws IOException { +PaletteData getColorMap() { int numColors = 1 << bitsPerSample[0]; /* R, G, B entries are 16 bit wide (2 bytes) */ int numBytes = 3 * 2 * numColors; @@ -298,7 +298,7 @@ return colorMap; } -void parseEntries(byte[] buffer) throws IOException { +void parseEntries(byte[] buffer) { for (int offset = 0; offset < buffer.length; offset += IFD_ENTRY_SIZE) { int tag = toInt(buffer, offset, TYPE_SHORT); int type = toInt(buffer, offset + 2, TYPE_SHORT); @@ -379,7 +379,7 @@ } } -public ImageData read() throws IOException { +public ImageData read() { /* Set TIFF default values */ bitsPerSample = new int[] {1}; colorMapOffset = NO_VALUE; @@ -466,7 +466,7 @@ return -1; } -void write(int photometricInterpretation) throws IOException { +void write(int photometricInterpretation) { bool isRGB = photometricInterpretation is 2; bool isColorMap = photometricInterpretation is 3; bool isBiLevel = photometricInterpretation is 0 || photometricInterpretation is 1; @@ -567,14 +567,14 @@ out.write(data); } -void writeEntry(short tag, int type, int count, int value) throws IOException { +void writeEntry(short tag, int type, int count, int value) { out.writeShort(tag); out.writeShort(type); out.writeInt(count); out.writeInt(value); } -void writeHeader() throws IOException { +void writeHeader() { /* little endian */ out.write(0x49); out.write(0x49); @@ -588,7 +588,7 @@ out.writeInt(8); } -void writeToStream(LEDataOutputStream byteStream) throws IOException { +void writeToStream(LEDataOutputStream byteStream) { out = byteStream; int photometricInterpretation = -1;