|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.image.AbstractEncoder
lt.monarch.image.tiff.TIFFEncoder
public class TIFFEncoder extends AbstractEncoder
TIFFEncoder create a TIFF file.
| Modifier and Type | Field and Description |
|---|
| Fields inherited from class lt.monarch.image.AbstractEncoder |
|---|
image |
| Constructor and Description |
|---|
TIFFEncoder()
Empty constructor for TIFFEncoder. |
TIFFEncoder(TIFFType type)
Constructor for TIFFEncoder with the TIFF file type. |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(java.awt.Image image,
java.io.OutputStream outputStream)
Encodes image to the output stream. |
java.lang.String |
getContentType()
Returns content type string - 'tiff' |
void |
setTiffType(TIFFType type)
Sets TIFF file type. |
| Methods inherited from class lt.monarch.image.AbstractEncoder |
|---|
readObject, writeObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TIFFEncoder()
public TIFFEncoder(TIFFType type)
type - TIFF file type| Method Detail |
|---|
public void setTiffType(TIFFType type)
type - TIFF file typepublic java.lang.String getContentType()
getContentType in class AbstractEncoder
public void encode(java.awt.Image image,
java.io.OutputStream outputStream)
throws java.io.IOException,
java.lang.InterruptedException
encode in class AbstractEncoderimage - image which must be encoded into TIFF format.outputStream - TIFF encoded image output stream.java.io.IOException - if an I/O error occurs. In particular, an IOException
may be thrown if the output stream has been closed.java.lang.InterruptedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||