Class HorizontalDeDifferencingStream
- java.lang.Object
-
- java.io.InputStream
-
- com.twelvemonkeys.imageio.plugins.tiff.HorizontalDeDifferencingStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
final class HorizontalDeDifferencingStream extends java.io.InputStream
A decoder for data converted using "horizontal differencing predictor".- Version:
- $Id: HorizontalDeDifferencingStream.java,v 1.0 11.03.13 14:20 haraldk Exp$
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitsPerSample
private java.nio.ByteBuffer
buffer
private java.nio.channels.ReadableByteChannel
channel
private int
columns
private int
samplesPerPixel
-
Constructor Summary
Constructors Constructor Description HorizontalDeDifferencingStream(java.io.InputStream stream, int columns, int samplesPerPixel, int bitsPerSample, java.nio.ByteOrder byteOrder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
private void
decodeRow()
private boolean
fetch()
int
read()
int
read(byte[] b, int off, int len)
long
skip(long n)
-
-
-
Method Detail
-
fetch
private boolean fetch() throws java.io.IOException
- Throws:
java.io.IOException
-
decodeRow
private void decodeRow()
-
read
public int read() throws java.io.IOException
- Specified by:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException
- Overrides:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
skip
public long skip(long n) throws java.io.IOException
- Overrides:
skip
in classjava.io.InputStream
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.InputStream
- Throws:
java.io.IOException
-
-