com.tuneology.sane
Class BooleanOption

java.lang.Object
  |
  +--com.tuneology.sane.OptionDescriptor
        |
        +--com.tuneology.sane.BooleanOption

public class BooleanOption
extends OptionDescriptor

This option is an array of boolean values.

Version:
$Id$
Author:
Fran Taylor

Method Summary
 boolean[] getValues()
          Returns option values.
 int setValues(boolean[] values)
          Set option values.
 
Methods inherited from class com.tuneology.sane.OptionDescriptor
getCap, getDescription, getElements, getName, getRange, getSize, getTitle, getUnit, setAutomatic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getValues

public boolean[] getValues()
                    throws SaneException
Returns option values.

Returns:
array of values.
Throws:
SaneException

setValues

public int setValues(boolean[] values)
              throws SaneException
Set option values.

Parameters:
values - the new values.
Returns:
the following bits may be set: Sane.INFO_INEXACT, Sane.INFO_RELOAD_OPTIONS, Sane.INFO_RELOAD_PARAMS.
Throws:
SaneException