uk.co.mmscomputing.imageio.tiff
Class TIFFSubSamplingOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by uk.co.mmscomputing.imageio.tiff.TIFFSubSamplingOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class TIFFSubSamplingOutputStream
extends java.io.FilterOutputStream


Field Summary
protected  byte[] blue
           
protected  int col
           
protected  byte[] green
           
protected  boolean needToFlush
           
protected  byte[] red
           
protected  int w
           
protected  int ww
           
protected  int x
           
protected  int xf
           
protected  int y
           
protected  int yf
           
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
TIFFSubSamplingOutputStream(java.io.OutputStream out, int width, int yf, int xf)
           
 
Method Summary
 void flush()
           
static void main(java.lang.String[] argv)
           
 void write(int b)
           
protected  void writeDataUnits()
           
 
Methods inherited from class java.io.FilterOutputStream
close, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

w

protected int w

yf

protected int yf

xf

protected int xf

red

protected byte[] red

green

protected byte[] green

blue

protected byte[] blue

y

protected int y

x

protected int x

col

protected int col

needToFlush

protected boolean needToFlush

ww

protected int ww
Constructor Detail

TIFFSubSamplingOutputStream

public TIFFSubSamplingOutputStream(java.io.OutputStream out,
                                   int width,
                                   int yf,
                                   int xf)
Method Detail

writeDataUnits

protected void writeDataUnits()
                       throws java.io.IOException
Throws:
java.io.IOException

write

public void write(int b)
           throws java.io.IOException
Overrides:
write in class java.io.FilterOutputStream
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.FilterOutputStream
Throws:
java.io.IOException

main

public static void main(java.lang.String[] argv)


Copyright © 2011 Direcció General de Tecnologia i Comunicacions. Govern de les Illes Balears. All Rights Reserved.