uk.co.mmscomputing.imageio.jpeg
Class JFIFOutputStream
java.lang.Object
java.io.OutputStream
uk.co.mmscomputing.imageio.jpeg.JPEGOutputStream
uk.co.mmscomputing.imageio.jpeg.JFIFOutputStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable, JPEGConstants
public class JFIFOutputStream
- extends JPEGOutputStream
| Fields inherited from interface uk.co.mmscomputing.imageio.jpeg.JPEGConstants |
APP0, APP1, APP10, APP11, APP12, APP13, APP14, APP15, APP2, APP3, APP4, APP5, APP6, APP7, APP8, APP9, COM, CQT, CQT2, DAC, DCTBlockSize, DCTSize, DHP, DHT, DNL, DQT, DRI, EOI, EXP, HCACTable, HCDCTable, HLACTable, HLDCTable, IZigZagTable, JPG, JPG0, JPG1, JPG10, JPG11, JPG12, JPG13, JPG2, JPG3, JPG4, JPG5, JPG6, JPG7, JPG8, JPG9, LQT, LQT2, MARK, RST0, RST1, RST2, RST3, RST4, RST5, RST6, RST7, SOF0, SOF1, SOF10, SOF11, SOF13, SOF14, SOF15, SOF2, SOF3, SOF5, SOF6, SOF7, SOF9, SOI, SOS, TEM, ZigZagTable |
| Methods inherited from class uk.co.mmscomputing.imageio.jpeg.JPEGOutputStream |
close, defineHuffmanTables, defineQuantizationTables, endOfImage, flush, setRawACHuffmanTable, setRawDCHuffmanTable, setZZQuantizationTable, setZZQuantizationTable, startOfFrame, startOfImage, startOfScan |
| Methods inherited from class java.io.OutputStream |
write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
version
protected int version
units
protected int units
xDensity
protected int xDensity
yDensity
protected int yDensity
xThumbnail
protected int xThumbnail
yThumbnail
protected int yThumbnail
JFIFOutputStream
public JFIFOutputStream(java.io.OutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
JFIFOutputStream
public JFIFOutputStream(java.io.OutputStream out,
boolean isYCbCr)
throws java.io.IOException
- Throws:
java.io.IOException
JFIFOutputStream
public JFIFOutputStream(java.io.OutputStream out,
boolean isYCbCr,
int height,
int width)
throws java.io.IOException
- Throws:
java.io.IOException
setUnits
public void setUnits(int units)
getUnits
public int getUnits()
setXDensity
public void setXDensity(int xDensity)
getXDensity
public int getXDensity()
setYDensity
public void setYDensity(int yDensity)
getYDensity
public int getYDensity()
app0
protected void app0(java.io.OutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
writeHeader
public void writeHeader(java.io.OutputStream out,
int height,
int width)
throws java.io.IOException
- Throws:
java.io.IOException
convert
protected int convert(int c)
write
public void write(int c)
throws java.io.IOException
- Overrides:
write in class JPEGOutputStream
- Throws:
java.io.IOException
write
public void write(int[] buf)
throws java.io.IOException
- Throws:
java.io.IOException
write
public void write(int[] buf,
int off,
int len)
throws java.io.IOException
- Throws:
java.io.IOException
write
public void write(byte[] buf,
int off,
int len)
throws java.io.IOException
- Overrides:
write 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.