Class HorizontalDifferencingStream
- java.lang.Object
-
- java.io.OutputStream
-
- com.twelvemonkeys.imageio.plugins.tiff.HorizontalDifferencingStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
final class HorizontalDifferencingStream extends java.io.OutputStreamA 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 intbitsPerSampleprivate java.nio.ByteBufferbufferprivate java.nio.channels.WritableByteChannelchannelprivate intcolumnsprivate intsamplesPerPixel
-
Constructor Summary
Constructors Constructor Description HorizontalDifferencingStream(java.io.OutputStream stream, int columns, int samplesPerPixel, int bitsPerSample, java.nio.ByteOrder byteOrder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()private voidencodeRow()voidflush()private booleanflushBuffer()(package private) static booleanisValidBPS(int bitsPerSample)voidwrite(byte[] b, int off, int len)voidwrite(int b)
-
-
-
Method Detail
-
isValidBPS
static boolean isValidBPS(int bitsPerSample)
-
flushBuffer
private boolean flushBuffer() throws java.io.IOException- Throws:
java.io.IOException
-
encodeRow
private void encodeRow() throws java.io.EOFException- Throws:
java.io.EOFException
-
write
public void write(int b) throws java.io.IOException- Specified by:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
write
public void write(byte[] b, int off, int len) throws java.io.IOException- Overrides:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException- Specified by:
flushin interfacejava.io.Flushable- Overrides:
flushin classjava.io.OutputStream- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.OutputStream- Throws:
java.io.IOException
-
-