public class WiaFunctionalUnit extends FunctionalUnit
FunctionalUnit.BitDepth, FunctionalUnit.Duplex, FunctionalUnit.FileFormat, FunctionalUnit.Mode, FunctionalUnit.OutputFormat, FunctionalUnit.PixelDataType, FunctionalUnit.PropertyBuilder, FunctionalUnit.TiffCompression
PROP_ADF, PROP_JPEG_QUALITY, PROP_MODE, PROP_OUTPUT_FORMAT, PROP_TIFF_COMPRESSION
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes it children.
|
FunctionalUnit.BitDepth |
getBitDepth() |
long |
getBrightness() |
long |
getContrast() |
String |
getDescription()
Description (optional)
|
FunctionalUnit.Duplex |
getDuplex() |
String |
getId()
Full item name.
|
String |
getName()
Name (optional)
|
FunctionalUnit.PixelDataType |
getPixelDataType() |
long |
getResolution() |
boolean |
isDocumentFeeder()
Whether this is a document feeder
|
boolean |
isFlatbed()
Whether this is a flatbed
|
List<Capability> |
refreshCapabilities()
Refresh capabilities from the device.
|
void |
scan(ScanListener listener,
String properties)
Performs single or multi-page ADF scan.
|
void |
setBitDepth(FunctionalUnit.BitDepth bitDepth) |
void |
setBrightness(long brightness) |
void |
setContrast(long contrast) |
void |
setDuplex(FunctionalUnit.Duplex duplex) |
void |
setPaperSize(PaperSize paperSize) |
void |
setPixelDataType(FunctionalUnit.PixelDataType dataType) |
void |
setResolution(long resolution) |
String |
toString(boolean verbose,
boolean withCapabilities)
String representation of this functional unit.
|
getDevice, scanOnePage, scanOnePage, toString
getCapabilities, getCapability, getCapabilityCurrentValueAsLong, getCapabilityCurrentValueAsString, getCapabilityValue, getCapabilityValueAsLong, getCapabilityValueAsString, isCapabilityDirty, setCapabilityDirty, setCapabilityValue
public void close() throws IOException
DeviceItem
close
in interface Closeable
close
in interface AutoCloseable
close
in class DeviceItem
IOException
public List<Capability> refreshCapabilities() throws ScanException
DeviceItem
refreshCapabilities
in class DeviceItem
ScanException
public boolean isFlatbed()
FunctionalUnit
isFlatbed
in class FunctionalUnit
public boolean isDocumentFeeder()
FunctionalUnit
isDocumentFeeder
in class FunctionalUnit
public void scan(ScanListener listener, String properties) throws ScanException
FunctionalUnit
scan
in class FunctionalUnit
listener
- to supply output target and to get notification.properties
- scan properties, you may use FunctionalUnit.PropertyBuilder to build.ScanException
public FunctionalUnit.Duplex getDuplex()
getDuplex
in class FunctionalUnit
public void setDuplex(FunctionalUnit.Duplex duplex)
setDuplex
in class FunctionalUnit
public FunctionalUnit.PixelDataType getPixelDataType()
getPixelDataType
in class FunctionalUnit
public void setPixelDataType(FunctionalUnit.PixelDataType dataType)
setPixelDataType
in class FunctionalUnit
public FunctionalUnit.BitDepth getBitDepth()
getBitDepth
in class FunctionalUnit
public void setBitDepth(FunctionalUnit.BitDepth bitDepth)
setBitDepth
in class FunctionalUnit
public long getResolution()
getResolution
in class FunctionalUnit
public void setResolution(long resolution)
setResolution
in class FunctionalUnit
public long getContrast()
getContrast
in class FunctionalUnit
public void setContrast(long contrast)
setContrast
in class FunctionalUnit
public long getBrightness()
getBrightness
in class FunctionalUnit
public void setBrightness(long brightness)
setBrightness
in class FunctionalUnit
public void setPaperSize(PaperSize paperSize)
setPaperSize
in class FunctionalUnit
public String getId()
getId
in class DeviceItem
public String getName()
DeviceItem
getName
in class DeviceItem
public String getDescription()
DeviceItem
getDescription
in class DeviceItem
public String toString(boolean verbose, boolean withCapabilities)
FunctionalUnit
toString
in class FunctionalUnit
Copyright © 2014 LAB Asprise. All Rights Reserved.