Mercurial > projects > dwt-mac
comparison dwt/internal/image/TIFFRandomFileAccess.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 |
comparison
equal
deleted
inserted
replaced
5:1a8b3cb347e0 | 6:b903c16b6f48 |
---|---|
25 inputStream = stream; | 25 inputStream = stream; |
26 start = current = next = inputStream.getPosition(); | 26 start = current = next = inputStream.getPosition(); |
27 buffers = new byte[LIST_SIZE][]; | 27 buffers = new byte[LIST_SIZE][]; |
28 } | 28 } |
29 | 29 |
30 void seek(int pos) throws IOException { | 30 void seek(int pos) { |
31 if (pos is current) return; | 31 if (pos is current) return; |
32 if (pos < start) throw new IOException(); | 32 if (pos < start) throw new IOException(); |
33 current = pos; | 33 current = pos; |
34 if (current > next) { | 34 if (current > next) { |
35 int n = current - next; | 35 int n = current - next; |
50 offset = 0; | 50 offset = 0; |
51 } | 51 } |
52 } | 52 } |
53 } | 53 } |
54 | 54 |
55 void read(byte b[]) throws IOException { | 55 void read(byte b[]) { |
56 int size = b.length; | 56 int size = b.length; |
57 int nCached = Math.min(size, next - current); | 57 int nCached = Math.min(size, next - current); |
58 int nMissing = size - next + current; | 58 int nMissing = size - next + current; |
59 int destNext = 0; | 59 int destNext = 0; |
60 if (nCached > 0) { | 60 if (nCached > 0) { |