From 4db05976577bd23a2774758b297efe204869dd01 Mon Sep 17 00:00:00 2001 From: Harald Kuhr Date: Tue, 29 Sep 2009 18:30:28 +0200 Subject: [PATCH] Made length parameters long. --- .../java/com/twelvemonkeys/imageio/plugins/psd/PSDUtil.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/twelvemonkeys-imageio/psd/src/main/java/com/twelvemonkeys/imageio/plugins/psd/PSDUtil.java b/twelvemonkeys-imageio/psd/src/main/java/com/twelvemonkeys/imageio/plugins/psd/PSDUtil.java index d9338fa6..58a5fd4c 100644 --- a/twelvemonkeys-imageio/psd/src/main/java/com/twelvemonkeys/imageio/plugins/psd/PSDUtil.java +++ b/twelvemonkeys-imageio/psd/src/main/java/com/twelvemonkeys/imageio/plugins/psd/PSDUtil.java @@ -76,16 +76,16 @@ final class PSDUtil { 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())); } - 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 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"); }