com.sun.media.jai.codec
Class PNMEncodeParam

java.lang.Object
  |
  +--com.sun.media.jai.codec.PNMEncodeParam
All Implemented Interfaces:
Cloneable, ImageDecodeParam, ImageEncodeParam, Serializable

public class PNMEncodeParam
extends Object
implements ImageEncodeParam

An instance of ImageEncodeParam for encoding images in the PNM format.

This class allows for the specification of whether to encode in the ASCII or raw variants of the PBM, PGM, and PPM formats. By default, raw encoding is used.

This class is not a committed part of the JAI API. It may be removed or changed in future releases of JAI.

See Also:
Serialized Form

Constructor Summary
PNMEncodeParam()
          Constructs a PNMEncodeParam object with default values for parameters.
 
Method Summary
 boolean getRaw()
          Returns the value of the raw parameter.
 void setRaw(boolean raw)
          Sets the representation to be used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PNMEncodeParam

public PNMEncodeParam()
Constructs a PNMEncodeParam object with default values for parameters.
Method Detail

setRaw

public void setRaw(boolean raw)
Sets the representation to be used. If the raw parameter is true, raw encoding will be used; otherwise ASCII encoding will be used.
Parameters:
raw - true if raw format is to be used.

getRaw

public boolean getRaw()
Returns the value of the raw parameter.