uk.co.mmscomputing.imageio.jpeg
Class JPEGInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
uk.co.mmscomputing.io.IntFilterInputStream
uk.co.mmscomputing.imageio.jpeg.JPEGInputStream
- All Implemented Interfaces:
- java.io.Closeable, JPEGConstants
- Direct Known Subclasses:
- JFIFInputStream
public class JPEGInputStream
- extends IntFilterInputStream
- implements JPEGConstants
| 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 java.io.FilterInputStream |
available, close, mark, markSupported, read, reset, skip |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bps
protected int bps
height
protected int height
width
protected int width
maxHor
protected int maxHor
maxVert
protected int maxVert
mcuHeight
protected int mcuHeight
mcuWidth
protected int mcuWidth
mcuRows
protected int mcuRows
mcuCols
protected int mcuCols
spp
protected int spp
dcins
protected JPEGHuffmanInputStream[] dcins
acins
protected JPEGHuffmanInputStream[] acins
compins
protected JPEGComponentInputStream[] compins
scanins
protected JPEGComponentInputStream[] scanins
Ri
protected int Ri
JPEGInputStream
public JPEGInputStream(java.io.InputStream input)
throws java.io.IOException
- Throws:
java.io.IOException
JPEGInputStream
public JPEGInputStream(java.io.InputStream input,
int[][] qts,
JPEGHuffmanInputStream[] dcins,
JPEGHuffmanInputStream[] acins)
throws java.io.IOException
- Throws:
java.io.IOException
getQTs
public int[][] getQTs()
getDCIns
public JPEGHuffmanInputStream[] getDCIns()
getACIns
public JPEGHuffmanInputStream[] getACIns()
getHeight
public int getHeight()
getWidth
public int getWidth()
getNumComponents
public int getNumComponents()
readIn
protected int readIn(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
startOfFrame
public void startOfFrame(java.io.InputStream in,
int mode)
throws java.io.IOException
- Throws:
java.io.IOException
defineHuffmanTables
public void defineHuffmanTables(java.io.InputStream tables)
throws java.io.IOException
- Throws:
java.io.IOException
defineArithmeticConditioning
public void defineArithmeticConditioning(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
restartIntervalTermination
public void restartIntervalTermination(int no)
throws java.io.IOException
- Throws:
java.io.IOException
startOfImage
public void startOfImage()
endOfImage
public void endOfImage()
startOfScan
public void startOfScan(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
defineQuantizationTables
public void defineQuantizationTables(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
defineNumberOfLines
public void defineNumberOfLines(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
defineRestartInterval
public void defineRestartInterval(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
defineHierarchicalProgression
public void defineHierarchicalProgression(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
expandReferenceComponents
public void expandReferenceComponents(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
dump
protected void dump(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
app0
public void app0(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
app1
public void app1(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
app2
public void app2(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
app3
public void app3(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
app4
public void app4(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
app5
public void app5(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
app6
public void app6(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
app7
public void app7(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
app8
public void app8(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
app9
public void app9(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
app10
public void app10(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
app11
public void app11(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
app12
public void app12(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
app13
public void app13(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
app14
public void app14(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
app15
public void app15(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
comment
public void comment(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
read
public int read()
throws java.io.IOException
- Overrides:
read in class java.io.FilterInputStream
- Throws:
java.io.IOException
read
public int read(int[] buf,
int off,
int len)
throws java.io.IOException
- Specified by:
read in class IntFilterInputStream
- Throws:
java.io.IOException
read
public int read(byte[] buf,
int off,
int len)
throws java.io.IOException
- Overrides:
read in class java.io.FilterInputStream
- Throws:
java.io.IOException
Copyright © 2011 Direcció General de Tecnologia i Comunicacions. Govern de les Illes Balears. All Rights Reserved.