uk.co.mmscomputing.imageio.jpeg
Class JPEGHuffmanOutputStream
java.lang.Object
java.io.OutputStream
uk.co.mmscomputing.imageio.jpeg.JPEGHuffmanOutputStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable
public class JPEGHuffmanOutputStream
- extends java.io.OutputStream
| Methods inherited from class java.io.OutputStream |
close, write, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BITS
protected int[] BITS
HUFFVAL
protected int[] HUFFVAL
HUFFSIZE
protected int[] HUFFSIZE
HUFFCODE
protected int[] HUFFCODE
EHUFSI
protected int[] EHUFSI
EHUFCO
protected int[] EHUFCO
VALPTR
protected int[] VALPTR
MINCODE
protected int[] MINCODE
MAXCODE
protected int[] MAXCODE
out
protected JPEGBitOutputStream out
JPEGHuffmanOutputStream
public JPEGHuffmanOutputStream(JPEGBitOutputStream out,
java.io.InputStream tables)
throws java.io.IOException
- Throws:
java.io.IOException
getTableDataLength
public int getTableDataLength()
writeTableData
public void writeTableData(java.io.OutputStream tables)
throws java.io.IOException
- Throws:
java.io.IOException
write
public void write(int b)
throws java.io.IOException
- Specified by:
write in class java.io.OutputStream
- Throws:
java.io.IOException
writeBits
public void writeBits(int code,
int size)
throws java.io.IOException
- Throws:
java.io.IOException
flush
public void flush()
throws java.io.IOException
- Specified by:
flush in interface java.io.Flushable- Overrides:
flush in class java.io.OutputStream
- Throws:
java.io.IOException
Copyright © 2011 Direcció General de Tecnologia i Comunicacions. Govern de les Illes Balears. All Rights Reserved.