org.monte.media.tiff
Class TIFFOutputStream
java.lang.Object
java.io.OutputStream
org.monte.media.tiff.TIFFOutputStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable
public class TIFFOutputStream
- extends java.io.OutputStream
TIFFOutputStream.
References:
TIFF TM Revision 6.0. Final — June 3, 1992.
Adobe Systems Inc.
http://www.exif.org/specifications.html
- Version:
- 1.0 2011-02-27 Created.
- Author:
- Werner Randelshofer
|
Constructor Summary |
TIFFOutputStream(javax.imageio.stream.ImageOutputStream out)
|
| Methods inherited from class java.io.OutputStream |
flush, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TIFFOutputStream
public TIFFOutputStream(javax.imageio.stream.ImageOutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
setByteOrder
public void setByteOrder(java.nio.ByteOrder bo)
getByteOrder
public java.nio.ByteOrder getByteOrder()
getStreamPosition
public long getStreamPosition()
throws java.io.IOException
- Throws:
java.io.IOException
seek
public void seek(long position)
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
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
write in class java.io.OutputStream
- Throws:
java.io.IOException
writeIFD
public void writeIFD(IFD ifd,
long nextIFD)
throws java.io.IOException
- Throws:
java.io.IOException
getFirstIFDOffset
public long getFirstIFDOffset()
setFirstIFDOffset
public void setFirstIFDOffset(long newValue)
finish
public void finish()
throws java.io.IOException
- Throws:
java.io.IOException
writeLONG
public void writeLONG(long v)
throws java.io.IOException
- Writes a 32-bit unsigned integer.
- Throws:
java.io.IOException
writeSHORT
public void writeSHORT(int v)
throws java.io.IOException
- Writes a 12-bit unsigned integer.
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close in interface java.io.Closeable- Overrides:
close in class java.io.OutputStream
- Throws:
java.io.IOException