Made length parameters long.

This commit is contained in:
Harald Kuhr 2009-09-29 18:30:28 +02:00
parent 3e972495db
commit 4db0597657

View File

@ -76,16 +76,16 @@ final class PSDUtil {
return new String(bytes); return new String(bytes);
} }
static DataInputStream createPackBitsStream(final ImageInputStream pInput, int pLength) { static DataInputStream createPackBitsStream(final ImageInputStream pInput, long pLength) {
return new DataInputStream(new DecoderStream(IIOUtil.createStreamAdapter(pInput, pLength), new PackBitsDecoder())); return new DataInputStream(new DecoderStream(IIOUtil.createStreamAdapter(pInput, pLength), new PackBitsDecoder()));
} }
static DataInputStream createZipStream(final ImageInputStream pInput, int pLength) { static DataInputStream createZipStream(final ImageInputStream pInput, long pLength) {
//return new DataInputStream(new DecoderStream(IIOUtil.createStreamAdapter(pInput, pLength), new InflateDecoder())); //return new DataInputStream(new DecoderStream(IIOUtil.createStreamAdapter(pInput, pLength), new InflateDecoder()));
return new DataInputStream(new ZipInputStream(IIOUtil.createStreamAdapter(pInput, pLength))); return new DataInputStream(new ZipInputStream(IIOUtil.createStreamAdapter(pInput, pLength)));
} }
static DataInputStream createZipPredictorStream(final ImageInputStream pInput, int pLength) { static DataInputStream createZipPredictorStream(final ImageInputStream pInput, long pLength) {
throw new UnsupportedOperationException("Method createZipPredictonStream not implemented"); throw new UnsupportedOperationException("Method createZipPredictonStream not implemented");
} }