|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.asprise.util.jtwain.Source
The Source
class represents a TWAIN data source.
The Source can be a scanner, digital camera or a image database.
The following code illustrates an image acquisition session:
There are many other ways to obtain a data source. To let the user select from
a dialog:
Source source =
SourceManager
.instance().getDefaultSource(); // Get the default Source
try {
source.open();
... // Get/Set the Source's capabilities here ...
Image image = source.acuqireImage();
... // Use image here ...
}catch(Exception e) {
e.printStackTrace();
}finally{
SourceManager.instance().closeSourceManager();
}
Source source =
SourceManager
.selectSourceUI();
SourceManager
Field Summary | |
static int |
EXCEPTION_THROW_ALL
|
static int |
EXCEPTION_THROW_MINIMUM
|
static int |
EXCEPTION_THROW_SOME
|
static int |
INVALID_NUMBER
|
Constructor Summary | |
Source(DataTypeIdentity identity)
Creates a new Source with full identity. |
|
Source(String sourceName)
Creates a new Source. |
Method Summary | |
Image |
acquireImage()
Acquires an image. |
BufferedImage |
acquireImageAsBufferedImage()
Acquires an image and returns it as a BufferedImage. |
void |
close()
Closes the Source. |
int[] |
getAlarms()
Get available alarms. |
int[] |
getAlarmVolume()
Get alarm volumes. |
String |
getAuthor()
Get author of acquired image (may include a copyright string). |
boolean |
getAutoBright()
Get status of the source's auto-brightness function. |
boolean[] |
getAutoFeed()
Get AutoFeed abilities. |
boolean |
getAutomaticBorderDetection()
Get automatic border detection status. |
int |
getAutomaticCapture()
Get number of images to automatically capture. |
boolean |
getAutomaticDeskew()
Get automatic deskew status. |
boolean |
getAutomaticRotate()
Get automatic rotate status. |
boolean |
getAutoScan()
Get status of auto scan. |
boolean |
getBarCodeDetectionEnabled()
Get status of bar code detection. |
int[] |
getBitDepth()
Get the bit depth values of ICAP_PIXELTYPE. |
int[] |
getBitOrder()
Get the bit orders (how the bytes in an image are filled by the Source). |
static boolean |
getBoolean(Object o)
Extract boolean value from an object. |
static boolean[] |
getBooleanArray(Object o)
Extract a boolean array from an object. |
double[] |
getBrightness()
The brightness values available within the Source. |
Object |
getCapability(int mesgType,
int capabilityCode,
int expectedContainerType)
Get a capability. |
String |
getCaption()
Get a general note about the acquired image. |
int |
getClearBuffers()
Reports the presence of data in the scanner’s buffers. |
boolean |
getClearPage()
Get clear page status. |
int[] |
getCompression()
Common compression schemes shared by both the source and the application for Buffered Memory and File Transfer. |
double[] |
getContrast()
The contrast values available within the Source. |
int |
getCurrentAlarmVolume()
Get current alarm volume. |
boolean |
getCurrentAutoFeed()
Get current AutoFeed status. |
boolean |
getCurrentAutomaticBorderDetection()
Get current automatic border detection status. |
int |
getCurrentAutomaticCapture()
Get current number of images to automatically capture. |
boolean |
getCurrentAutomaticDeskew()
Get current automatic deskew status. |
boolean |
getCurrentAutomaticRotate()
Get current automatic rotate status. |
int |
getCurrentBitDepth()
Get the current bit depth value of ICAP_PIXELTYPE. |
int |
getCurrentBitOrder()
Get the current bit orders (how the bytes in an image are filled by the Source). |
boolean |
getCurrentClearPage()
Get current clear page status. |
int |
getCurrentCompression()
Get current common compression schemes shared by both the source and the application for Buffered Memory and File Transfer [Current value]. |
boolean |
getCurrentFeederEnabled()
Get current feeder enabled status. |
boolean |
getCurrentFeederLoaded()
Get current feeder loaded status. |
boolean |
getCurrentFeedPage()
Get current feed page status. |
int |
getCurrentFlipRotation()
Get current flip rotation option. |
double[] |
getCurrentFrame()
Returns the size and location of the next frame to be acquired. |
double |
getCurrentPhyscialWidth()
Get the maximum physical width (Y-axis) the source can acquire measured in the unit of ICAP_UNITS [Current value]. |
double |
getCurrentPhysicalHeight()
Get the maximum physical height (Y-axis) the source can acquire measured in the unit of ICAP_UNITS [Current value]. |
int |
getCurrentPixelFlavor()
Get the current pixel flavor - sense of the pixel whose numeric value is zero. |
int |
getCurrentPixelType()
Get current type of pixel data that a source is capable of acquiring. |
int |
getCurrentPlanarChunky()
Get current color data format [Current value]. |
boolean |
getCurrentRewindPage()
Get current rewind page status. |
int |
getCurrentTransferCount()
Get the number of images to be transferred in this session [Current value]. |
int |
getCurrentTransferMechanism()
Get the current transfer mechanism. |
int[] |
getCurrentUnits()
Get the current unit of measure for all quantities. |
double |
getCurrentXResolution()
Get the current X-axis resolution, measured in ICAP_UNITS. |
double |
getCurrentYResolution()
Get the current Y-axis resolution, measured in ICAP_UNITS. |
boolean |
getDefaultAutoFeed()
Get default AutoFeed status. |
boolean |
getDefaultAutomaticBorderDetection()
Get default automatic border detection status. |
int |
getDefaultAutomaticCapture()
Get default number of images to automatically capture. |
boolean |
getDefaultAutomaticDeskew()
Get default automatic deskew status. |
boolean |
getDefaultAutomaticRotate()
Get default automatic rotate status. |
int |
getDefaultBitDepth()
Get the default bit depth value of ICAP_PIXELTYPE. |
int |
getDefaultBitOrder()
Get the default bit orders (how the bytes in an image are filled by the Source). |
boolean |
getDefaultClearPage()
Get default clear page status. |
int |
getDefaultCompression()
Get default common compression scheme shared by both the source and the application for Buffered Memory and File Transfer [Default value]. |
boolean |
getDefaultFeederEnabled()
Get default feeder enabled status. |
boolean |
getDefaultFeederLoaded()
Get default feeder loaded status. |
boolean |
getDefaultFeedPage()
Get default feed page status. |
int |
getDefaultFlipRotation()
Get default flip rotation option. |
double |
getDefaultPhyscialWidth()
Get the maximum physical width (Y-axis) the source can acquire measured in the unit of ICAP_UNITS [Default value]. |
double |
getDefaultPhysicalHeight()
Get the maximum physical height (Y-axis) the source can acquire measured in the unit of ICAP_UNITS [Default value]. |
int |
getDefaultPixelType()
Get default type of pixel data that a source is capable of acquiring. |
int |
getDefaultPlanarChunky()
Get the default color format [Default value]. |
boolean |
getDefaultRewindPage()
Get default rewind page status. |
int |
getDefaulttPixelFlavor()
Get the default pixel flavor - sense of the pixel whose numeric value is zero. |
int |
getDefaultTransferCount()
Get the number of images to be transferred in this session [Default value]. |
int |
getDefaultTransferMechanism()
Get the default transfer mechanism. |
int[] |
getDefaultUnits()
Get the default unit of measure for all quantities. |
double |
getDefaultXResolution()
Get the default X-axis resolution, measured in ICAP_UNITS. |
double |
getDefaultYResolution()
Get the default Y-axis resolution, measured in ICAP_UNITS. |
String |
getDeviceDateTime()
Get the date and time of a device's clock. |
boolean |
getDeviceOnline()
Determines if hardware in on and ready. |
static double |
getDouble(Object o)
Extract a double from an object. |
static double[] |
getDoubleArray(Object o)
Extract a double array from an object. |
int |
getDuplex()
Gets the duplex mode supported by the scanner. |
boolean |
getDuplexEnabled()
Get duplex status. |
int[] |
getExtendedCapabilities()
Get a list of extended capabilities that can be used in States 5 and 6. |
String[] |
getExtendedCapabilitiessStrings()
Get a human readable list of extended capabilities. |
boolean |
getFeederEnabled()
Get feeder enabled status. |
boolean |
getFeederLoaded()
Get feeder loaded status. |
boolean |
getFeedPage()
Get feed page status. |
int |
getFlipRotation()
Get flip rotation option. |
double[][] |
getFrames()
Returns the size and location of all the frames the Source will acquire image data from when acquiring from each page. |
double |
getGamma()
Get gamma correction value for image data. |
DataTypeIdentity |
getIdentity()
Get the identity of this source. |
boolean |
getIndicators()
Use the Source's progress indicator? |
static int |
getInt(Object o)
Extract an int from an object. |
static int[] |
getIntArray(Object o)
Extract an integer array from an object. |
Image |
getLastAcquiredImage()
Gets the last acquired image. |
int[] |
getMaxBatchBuffers()
Describes the number of pages that the scanner can buffer when CAP_AUTOSCAN is enabled. |
int |
getMaxFrames()
Gets the maximum number of frames the Source can provide or the application can accept per page. |
boolean |
getMinimumExceptionEnabled()
Gets the status of level of exception thrown. |
int |
getNumberOfPendingImages()
Gets number of pending images. |
boolean |
getPatchCodeDetectionEnabled()
Gets the status of patch code detection. |
double |
getPhyscialWidth()
Get the maximum physical width (Y-axis) the source can acquire measured in the unit of ICAP_UNITS. |
double |
getPhysicalHeight()
Get the maximum physical height (Y-axis) the source can acquire measured in the unit of ICAP_UNITS. |
int[] |
getPixelFlavor()
Get the pixel flavors - sense of the pixel whose numeric value is zero. |
int[] |
getPixelType()
Get types of pixel data that a source is capable of acquiring. |
int[] |
getPlanarChunky()
Get all available color data formats. |
int[] |
getPrinter()
Returns the current list of printer devices. |
boolean |
getPrinterEnabled()
Current printer device on/off? |
int |
getPrinterMode()
Returns the device mode of the current printer. |
String |
getPrinterString()
Returns the printer string. |
DataTypeImageLayout |
getRegion()
Returns the scanning region for next scan. |
boolean |
getRewindPage()
Get rewind page status. |
String |
getSourceName()
Gets name of the Source. |
int |
getState()
Gets the state of the source. |
int[] |
getSupportedCapabilities()
Get a list of all supported capabilities. |
String[] |
getSupportedCapabilitiesStrings()
Get a human readable list of all supported capabilities. |
int[] |
getSupportedSizes()
Gets the size(s) the Source can/should use to acquire image data. |
int |
getTransferCount()
Get the number of images to be transferred in this session. |
int[] |
getTransferMechanism()
Get transfer mechanisms supported by both the application and the source. |
boolean |
getUIControllable()
Check whether the source supports acquisition with the UI disabled. |
int[] |
getUnits()
Get the units of measure for all quantities. |
double[] |
getXResolution()
Get all the X-axis resolutions that the source can provide, measured in ICAP_UNITS. |
double[] |
getYResolution()
Get all the Y-axis resolutions that the source can provide, measured in ICAP_UNITS. |
boolean |
hasMoreImages()
Tests whether there are pending images to be acquired. |
boolean |
isUIEnabled()
Is the Source's user interface enabled? |
void |
open()
Opens this data source. |
InputStream |
outputLastAcquiredImageAsJPEG()
Returns the last acquired image in the JPEG format as a stream. |
void |
resetAutoFeed()
Reset auto feed option. |
void |
resetAutomaticBorderDetection()
Reset automatic border detection operation. |
void |
resetAutomaticCapture(int numberOfImages)
Reet number of images to automatically capture. |
void |
resetAutomaticDeskew()
Reset automatic rotate operation. |
void |
resetAutomaticRotate()
Reset automatic rotate operation. |
void |
resetBitDepth()
Reset the bit depth value of ICAP_PIXELTYPE. |
void |
resetBitOrder()
Reset the current bit orders (how the bytes in an image are filled by the Source). |
void |
resetCapability(int capabilityCode)
Reset a capability. |
void |
resetClearPage()
Reset clear page option. |
void |
resetFeedPage()
Reset feed page option. |
void |
resetFlipRotation()
Reset flip rotation option. |
void |
resetPixelType()
Reset the type of pixel data that a source is capable of acquiring. |
void |
resetRewindPage()
Reset rewind page option. |
int |
resetTransferCount()
Reset the number of images to be transferred in this session. |
void |
resetTransferMechanism()
Reset the transfer mechanism. |
void |
resetUnits()
Reset the unit of measure for all quantities. |
void |
resetXResolution()
Reset the X-axis resolution. |
void |
resetYResolution()
Reset the Y-axis resolution. |
void |
saveLastAcquiredImageIntoFile(File destination)
Saves the last acquired image as JPEG into the given file. |
void |
saveLastAcquiredImageIntoFile(String destination)
Saves the last acquired image as JPEG into the given file. |
File |
saveLastAcquiredImageIntoTemporaryFile()
Saves the last acquired image as JPEG into a temporary file. |
void |
setAlarms(int[] alarms)
Set alarms. |
void |
setAuthor(String author)
Set author of acquired image (may include a copyright string). |
void |
setAutoBright(boolean enableAutoBright)
Turn on or off the source's auto-brightness function. |
void |
setAutoFeed(boolean autoFeed)
Set auto feed option. |
void |
setAutomaticBorderDetection(boolean enabled)
Set automatic border detection operation. |
void |
setAutomaticCapture(int numberOfImages)
Set number of images to automatically capture. |
void |
setAutomaticDeskew(boolean enabled)
Set automatic rotate operation. |
void |
setAutomaticRotate(boolean enabled)
Set automatic rotate operation. |
void |
setAutoScan(boolean autoScan)
Set status of auto scan. |
void |
setBarCodeDetectionEnabled(boolean enableBarCodeDetection)
Set status of bar code detection. |
void |
setBitDepth(int bitDepth)
Set the bit depth value of ICAP_PIXELTYPE. |
void |
setBitOrder(int bitOrder)
Set the current bit orders (how the bytes in an image are filled by the Source). |
void |
setBrightness(double[] values)
Sets brightness values. |
void |
setCapability(int capabilityCode,
ValueContainer container)
Set a capability. |
void |
setCaption(String caption)
Set a general note about the acquired image. |
void |
setClearBuffers(int option)
Clears the buffers? |
void |
setClearPage(boolean clearPage)
Set clear page option. |
void |
setCompression(int compression)
Sets the compression [Not all compressions may be supported by the device!]. |
void |
setContrast(double[] values)
Sets constrast values. |
void |
setDuplexEnabled(boolean enable)
Enables/Disables duplex. |
void |
setExtendedCapabilities(int[] extendedCaps)
Set a list of extended capabilities that can be used in States 5 and 6. |
void |
setFeederEnabled(boolean feederEnabled)
Set feeder enabled. |
void |
setFeedPage(boolean feedPage)
Set feed page option. |
void |
setFlipRotation(int flipRotation)
Set flip rotation option. |
void |
setFrames(double[] singleFrame)
Specifies the single frame and its location to be used to acquire from future pages. |
void |
setFrames(double[][] multipleFrames)
Specifies the frames and their locations to be used to acquire from future pages. |
void |
setGamma(double gamma)
Set gamma correction value for image data. |
void |
setIndicators(boolean useProgressIndicator)
Turn on/off the Source's progress indicator. |
void |
setMaxBatchBuffers(int size)
Sets the current number pages to be buffered (if the Source allows this to be set) DG_CONTROL / DAT_CAPABILITY / MSG_SET -> CAP_MAXBATCHBUFFERS |
void |
setMaxFrames(int max)
Sets the maximum number of frames the Source can provide or the application can accept per page. |
void |
setMinimumExceptionEnabled(boolean enableMinimumException)
Allows only minimum set of exceptions to be thrown. |
void |
setPatchCodeDetectionEnabled(boolean enable)
Turns patch code detection on and off. |
void |
setPixelType(int pixelType)
Set the type of pixel data that a source is capable of acquiring. |
void |
setPrinter(int printer)
Selects the current printer. |
void |
setPrinterEnabled(boolean enable)
Turns current printer device on/off. |
void |
setPrinterString(String string)
Sets the string component. |
void |
setRegion(double left,
double top,
double right,
double bottom)
Sets the scanning region for next scan. |
void |
setRewindPage(boolean rewindPage)
Set rewind page option. |
void |
setSupportedSizes(int[] sizes)
Sets the size(s) the Source can/should use to acquire image data. |
void |
setTransferCount(int count)
Set the number of images to be transferred in this session. |
void |
setTransferMechanims(int transferMechanism)
Set the default transfer mechanism. |
void |
setUIEnabled(boolean enableUI)
Turns on/off the Source's user interface. |
void |
setUnits(int unitCode)
Set the unit of measure for all quantities. |
void |
setXResolution(double xresolution)
Set the X-axis resolution. |
void |
setYResolution(double Yresolution)
Set the Y-axis resolution. |
String |
toString()
String representation of the Source. |
String |
toString(boolean verbose)
String representation of the Source. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int INVALID_NUMBER
public static final int EXCEPTION_THROW_ALL
public static final int EXCEPTION_THROW_SOME
public static final int EXCEPTION_THROW_MINIMUM
Constructor Detail |
public Source(String sourceName)
sourceName
- name of the new sourceSource(DataTypeIdentity)
public Source(DataTypeIdentity identity)
identity
- identity of the SourceSource(String)
Method Detail |
public String getSourceName()
public DataTypeIdentity getIdentity()
public boolean isUIEnabled()
true
if the Source's UI is enabled; false
otherwise.setUIEnabled(boolean)
public void setUIEnabled(boolean enableUI)
enableUI
- isUIEnabled()
public void open() throws JTwainException
JTwainException
close()
public int getState() throws JTwainException
JTwainException
public int getNumberOfPendingImages() throws JTwainException
0
if no more pending images; -1
if there are pending
images, however, the number of images is unknown; postive integer n
there are n
pending images
JTwainException
hasMoreImages()
public boolean hasMoreImages() throws JTwainException
true
if there are pending images; false
otherwise.
JTwainException
getNumberOfPendingImages()
public void close() throws JTwainException
JTwainException
open()
public BufferedImage acquireImageAsBufferedImage() throws JTwainException
JTwainException
- if exception or error occurs during the acquirementgetState()
,
acquireImage()
public Image acquireImage() throws JTwainException
JTwainException
- if exception or error occurs during the acquirementgetState()
public Image getLastAcquiredImage()
null
if not available.acquireImage()
public InputStream outputLastAcquiredImageAsJPEG() throws IOException
IOException
public File saveLastAcquiredImageIntoTemporaryFile() throws IOException
IOException
public void saveLastAcquiredImageIntoFile(String destination) throws IOException
IOException
public void saveLastAcquiredImageIntoFile(File destination) throws IOException
IOException
public void setMinimumExceptionEnabled(boolean enableMinimumException)
InvalidStateException
,
OperationException
exceptions will not be thrown.
enableMinimumException
- public boolean getMinimumExceptionEnabled()
true
if minimum exception has been turn on;
false
otherwise.public String toString()
toString(boolean)
public String toString(boolean verbose)
verbose
- if set to true
, use verbose mode; if set to
false
, use concise mode.
toString()
public void setRegion(double left, double top, double right, double bottom) throws OperationException
left
- top
- right
- bottom
-
OperationException
public DataTypeImageLayout getRegion() throws OperationException
OperationException
public int getTransferCount() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> CAP_XFERCOUNT
InvalidStateException
OperationException
public int getCurrentTransferCount() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETCURRENT -> CAP_XFERCOUNT
InvalidStateException
OperationException
public int getDefaultTransferCount() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETDEFAULT -> CAP_XFERCOUNT
InvalidStateException
OperationException
public int resetTransferCount() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_RESET -> CAP_XFERCOUNT
InvalidStateException
OperationException
public void setTransferCount(int count) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> CAP_XFERCOUNT
count
- the number images to be transferred
Common values are:
InvalidStateException
OperationException
public int[] getSupportedCapabilities() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> CAP_SUPPORTEDCAPS
InvalidStateException
OperationException
public String[] getSupportedCapabilitiesStrings() throws InvalidStateException, OperationException
InvalidStateException
OperationException
public boolean getUIControllable() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> CAP_UICONTROLLABLE
InvalidStateException
OperationException
public int[] getCompression() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> ICAP_COMPRESSION
InvalidStateException
OperationException
public int getCurrentCompression() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETCURRENT -> ICAP_COMPRESSION
InvalidStateException
OperationException
public int getDefaultCompression() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETDEFAULT -> ICAP_COMPRESSION
InvalidStateException
OperationException
public void setCompression(int compression) throws InvalidStateException, OperationException
compression
-
InvalidStateException
OperationException
public int[] getPlanarChunky() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> ICAP_PLANARCHUNKY
InvalidStateException
OperationException
public int getCurrentPlanarChunky() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETCURRENT -> ICAP_PLANARCHUNKY
InvalidStateException
OperationException
public int getDefaultPlanarChunky() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETDEFAULT -> ICAP_PLANARCHUNKY
InvalidStateException
OperationException
public double getPhysicalHeight() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> ICAP_PHYSICALHEIGHT
InvalidStateException
OperationException
getUnits()
,
getPhyscialWidth()
public double getCurrentPhysicalHeight() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETCURRENT -> ICAP_PHYSICALHEIGHT
InvalidStateException
OperationException
getUnits()
,
getCurrentPhyscialWidth()()
public double getDefaultPhysicalHeight() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETDEFAULT -> ICAP_PHYSICALHEIGHT
InvalidStateException
OperationException
getUnits()
,
getDefaultPhyscialWidth()()
public double getPhyscialWidth() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> ICAP_PHYSICALWIDTH
InvalidStateException
OperationException
getUnits()
,
getPhysicalHeight()
public double getCurrentPhyscialWidth() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETCURRENT -> ICAP_PHYSICALWIDTH
InvalidStateException
OperationException
getUnits()
,
getCurrentPhysicalHeight()
public double getDefaultPhyscialWidth() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETCURRENT -> ICAP_PHYSICALWIDTH
InvalidStateException
OperationException
getDefaultPhysicalHeight()
public int[] getPixelFlavor() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> ICAP_PIXELFLAVOR
InvalidStateException
OperationException
public int getCurrentPixelFlavor() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETCURRENT -> ICAP_PIXELFLAVOR
InvalidStateException
OperationException
public int getDefaulttPixelFlavor() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETDEFAULT -> ICAP_PIXELFLAVOR
InvalidStateException
OperationException
public int[] getBitDepth() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> ICAP_BITDEPTH
InvalidStateException
OperationException
public int getCurrentBitDepth() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETCURRENT -> ICAP_BITDEPTH
InvalidStateException
OperationException
public int getDefaultBitDepth() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETDEFAULT -> ICAP_BITDEPTH
InvalidStateException
OperationException
public void resetBitDepth() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_RESET -> ICAP_BITDEPTH
InvalidStateException
OperationException
public void setBitDepth(int bitDepth) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> ICAP_BITDEPTH
bitDepth
- the bit depth value to be set to
InvalidStateException
OperationException
public int[] getBitOrder() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> ICAP_BITORDER
InvalidStateException
OperationException
public int getCurrentBitOrder() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETCURRENT -> ICAP_BITORDER
InvalidStateException
OperationException
public int getDefaultBitOrder() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETDEFAULT -> ICAP_BITORDER
InvalidStateException
OperationException
public void resetBitOrder() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_RESET -> ICAP_BITORDER
InvalidStateException
OperationException
public void setBitOrder(int bitOrder) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> ICAP_BITORDER
bitOrder
- the bit order to be set. Possible values:
InvalidStateException
OperationException
public int[] getPixelType() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> ICAP_PIXELTYPE
InvalidStateException
OperationException
public int getCurrentPixelType() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETCURRENT -> ICAP_PIXELTYPE
InvalidStateException
OperationException
public int getDefaultPixelType() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETDEFAULT -> ICAP_PIXELTYPE
InvalidStateException
OperationException
public void resetPixelType() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_RESET -> ICAP_PIXELTYPE
InvalidStateException
OperationException
public void setPixelType(int pixelType) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> ICAP_PIXELTYPE
pixelType
- the pixel type to be set. Possible values:
InvalidStateException
OperationException
public int[] getUnits() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> ICAP_UNITS
InvalidStateException
OperationException
public int[] getCurrentUnits() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETCURRENT -> ICAP_UNITS
InvalidStateException
OperationException
public int[] getDefaultUnits() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETDEFAULT -> ICAP_UNITS
InvalidStateException
OperationException
public void resetUnits() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_RESET -> ICAP_UNITS
InvalidStateException
OperationException
public void setUnits(int unitCode) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETDEFAULT -> ICAP_UNITS
unitCode
- the unit to be set. Possible values:
InvalidStateException
OperationException
public int[] getTransferMechanism() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> ICAP_XFERMECH
InvalidStateException
OperationException
public int getCurrentTransferMechanism() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETCURRENT -> ICAP_XFERMECH
InvalidStateException
OperationException
public int getDefaultTransferMechanism() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETDEFAULT -> ICAP_XFERMECH
InvalidStateException
OperationException
public void resetTransferMechanism() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_RESET -> ICAP_XFERMECH
InvalidStateException
OperationException
public void setTransferMechanims(int transferMechanism) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> ICAP_XFERMECH
transferMechanism
- the transfer mechanism to be set. Possible values:
InvalidStateException
OperationException
public double[] getXResolution() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> ICAP_XRESOLUTION
InvalidStateException
OperationException
getYResolution()
public double getCurrentXResolution() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETCURRENT -> ICAP_XRESOLUTION
InvalidStateException
OperationException
getCurrentYResolution()
public double getDefaultXResolution() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETDEFAULT -> ICAP_XRESOLUTION
InvalidStateException
OperationException
getDefaultYResolution()
public void resetXResolution() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_RESET -> ICAP_XRESOLUTION
InvalidStateException
OperationException
resetYResolution()
public void setXResolution(double xresolution) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> ICAP_XRESOLUTION
xresolution
- the X-axis reolution to be set.
InvalidStateException
OperationException
setYResolution(double)
public double[] getYResolution() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> ICAP_YRESOLUTION
InvalidStateException
OperationException
getXResolution()
public double getCurrentYResolution() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETCURRENT -> ICAP_YRESOLUTION
InvalidStateException
OperationException
getCurrentXResolution()
public double getDefaultYResolution() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETDEFAULT -> ICAP_YRESOLUTION
InvalidStateException
OperationException
getDefaultXResolution()
public void resetYResolution() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_RESET -> ICAP_YRESOLUTION
InvalidStateException
OperationException
resetXResolution()
public void setYResolution(double Yresolution) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> ICAP_YRESOLUTION
Yresolution
- the Y-axis reolution to be set.
InvalidStateException
OperationException
setXResolution(double)
public boolean[] getAutoFeed() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> CAP_AUTOFEED
InvalidStateException
OperationException
getClearPage()
,
getFeederEnabled()
,
getFeederLoaded()
,
getFeedPage()
,
getRewindPage()
public boolean getCurrentAutoFeed() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETCURRENT -> CAP_AUTOFEED
InvalidStateException
OperationException
public boolean getDefaultAutoFeed() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETDEFAULT -> CAP_AUTOFEED
InvalidStateException
OperationException
public void resetAutoFeed() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_RESET -> CAP_AUTOFEED
InvalidStateException
OperationException
public void setAutoFeed(boolean autoFeed) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> CAP_AUTOFEED
autoFeed
- turn on or off of auto feed
InvalidStateException
OperationException
public boolean getFeederEnabled() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> CAP_FEEDERENABLED
InvalidStateException
OperationException
getAutoFeed()
,
getFeederLoaded()
,
getFeedPage()
public boolean getCurrentFeederEnabled() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETCURRENT -> CAP_FEEDERENABLED
InvalidStateException
OperationException
public boolean getDefaultFeederEnabled() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETDEFAULT -> CAP_FEEDERENABLED
InvalidStateException
OperationException
public void setFeederEnabled(boolean feederEnabled) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> CAP_FEEDERENABLED
feederEnabled
-
InvalidStateException
OperationException
public boolean getFeederLoaded() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> CAP_FEEDERLOADED
InvalidStateException
OperationException
getAutoFeed()
,
getFeederEnabled()
,
getFeedPage()
,
getRewindPage()
public boolean getCurrentFeederLoaded() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETCURRENT -> CAP_FEEDERLOADED
InvalidStateException
OperationException
public boolean getDefaultFeederLoaded() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETDEFAULT -> CAP_FEEDERLOADED
InvalidStateException
OperationException
public boolean getClearPage() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> CAP_CLEARPAGE
true
if the source will reject the current page being acquired from
and leave the feeder acquire area empty; false
otherwise.
InvalidStateException
OperationException
getAutoFeed()
,
getFeederEnabled()
,
getFeederLoaded()
,
getFeedPage()
,
getRewindPage()
public boolean getCurrentClearPage() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETCURRENT -> CAP_CLEARPAGE
true
if the source will reject the current page being acquired from
and leave the feeder acquire area empty; false
otherwise.
InvalidStateException
OperationException
public boolean getDefaultClearPage() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETDEFAULT -> CAP_CLEARPAGE
true
if the source will reject the current page being acquired from
and leave the feeder acquire area empty; false
otherwise.
InvalidStateException
OperationException
public void resetClearPage() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_RESET -> CAP_CLEARPAGE
InvalidStateException
OperationException
public void setClearPage(boolean clearPage) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> CAP_CLEARPAGE
clearPage
- option to be set
InvalidStateException
OperationException
setFeedPage(boolean)
public boolean getRewindPage() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> CAP_REWINDPAGE
true
the Source will return the current page to the input side of
the document feeder and feed the last page from the output side of the feeder
back into the acquisition area. false
otherwise.
InvalidStateException
OperationException
getAutoFeed()
,
getFeederEnabled()
,
getFeederLoaded()
,
getFeedPage()
public boolean getCurrentRewindPage() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETCURRENT -> CAP_REWINDPAGE
true
the Source will return the current page to the input side of
the document feeder and feed the last page from the output side of the feeder
back into the acquisition area. false
otherwise.
InvalidStateException
OperationException
public boolean getDefaultRewindPage() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETDEFAULT -> CAP_REWINDPAGE
InvalidStateException
OperationException
public void resetRewindPage() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_RESET -> CAP_REWINDPAGE
InvalidStateException
OperationException
public void setRewindPage(boolean rewindPage) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> CAP_REWINDPAGE
rewindPage
- truethe Source will return the current page to the input side of
the document feeder and feed the last page from the output side of the feeder
back into the acquisition area. InvalidStateException
OperationException
setFeedPage(boolean)
public boolean getFeedPage() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> CAP_FEEDPAGE
true
the Source will eject the current page and advance the next
page in the document feeder into the feeder acquire area. false
otherwise.
InvalidStateException
OperationException
getAutoFeed()
,
getFeederEnabled()
,
getFeederLoaded()
,
getRewindPage()
public boolean getCurrentFeedPage() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETCURRENT -> CAP_FEEDPAGE
true
the Source will eject the current page and advance the next
page in the document feeder into the feeder acquire area. false
otherwise.
InvalidStateException
OperationException
public boolean getDefaultFeedPage() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETDEFAULT -> CAP_FEEDPAGE
true
the Source will eject the current page and advance the next
page in the document feeder into the feeder acquire area. false
otherwise.
InvalidStateException
OperationException
public void resetFeedPage() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_RESET -> CAP_FEEDPAGE
InvalidStateException
OperationException
public void setFeedPage(boolean feedPage) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> CAP_FEEDPAGE
feedPage
- true
the Source will eject the current page and advance the next
page in the document feeder into the feeder acquire area. false
otherwise.
InvalidStateException
OperationException
setAutoFeed(boolean)
,
setRewindPage(boolean)
public int[] getAlarms() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> CAP_ALARMS
InvalidStateException
OperationException
public void setAlarms(int[] alarms) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> CAP_ALARMS
alarms
- alarms to be set.
InvalidStateException
OperationException
public int[] getAlarmVolume() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> CAP_ALARMVOLUME
InvalidStateException
OperationException
public int getCurrentAlarmVolume() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETCURRENT -> CAP_ALARMVOLUME
InvalidStateException
OperationException
public boolean getAutomaticBorderDetection() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> ICAP_AUTOMATICBORDERDETECTION
InvalidStateException
OperationException
public boolean getCurrentAutomaticBorderDetection() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETCURRENT -> ICAP_AUTOMATICBORDERDETECTION
InvalidStateException
OperationException
public boolean getDefaultAutomaticBorderDetection() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETDEFAULT -> ICAP_AUTOMATICBORDERDETECTION
InvalidStateException
OperationException
public void setAutomaticBorderDetection(boolean enabled) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> ICAP_AUTOMATICBORDERDETECTION
enabled
- true to enable it; false otherwise.
InvalidStateException
OperationException
public void resetAutomaticBorderDetection() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_RESET -> ICAP_AUTOMATICBORDERDETECTION
InvalidStateException
OperationException
public boolean getAutomaticDeskew() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> ICAP_AUTOMATICDESKEW
InvalidStateException
OperationException
public boolean getCurrentAutomaticDeskew() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETCURRENT -> ICAP_AUTOMATICDESKEW
InvalidStateException
OperationException
public boolean getDefaultAutomaticDeskew() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETDEFAULT -> ICAP_AUTOMATICDESKEW
InvalidStateException
OperationException
public void setAutomaticDeskew(boolean enabled) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> ICAP_AUTOMATICDESKEW
enabled
- true to enable it; false otherwise.
InvalidStateException
OperationException
public void resetAutomaticDeskew() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_RESET -> ICAP_AUTOMATICDESKEW
InvalidStateException
OperationException
public boolean getAutomaticRotate() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> ICAP_AUTOMATICROTATE
InvalidStateException
OperationException
public boolean getCurrentAutomaticRotate() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETCURRENT -> ICAP_AUTOMATICROTATE
InvalidStateException
OperationException
public boolean getDefaultAutomaticRotate() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETDEFAULT -> ICAP_AUTOMATICROTATE
InvalidStateException
OperationException
public void setAutomaticRotate(boolean enabled) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> ICAP_AUTOMATICROTATE
enabled
- true to enable it; false otherwise.
InvalidStateException
OperationException
public void resetAutomaticRotate() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_RESET -> ICAP_AUTOMATICROTATE
InvalidStateException
OperationException
public int getFlipRotation() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> ICAP_FLIPROTATION
InvalidStateException
OperationException
public int getCurrentFlipRotation() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETCURRENT -> ICAP_FLIPROTATION
InvalidStateException
OperationException
public int getDefaultFlipRotation() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> ICAP_FLIPROTATION
InvalidStateException
OperationException
public void setFlipRotation(int flipRotation) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> ICAP_FLIPROTATION
flipRotation
- option to be set. Possible values:
InvalidStateException
OperationException
public void resetFlipRotation() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_RESET -> ICAP_FLIPROTATION
InvalidStateException
OperationException
public int getAutomaticCapture() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> CAP_AUTOMATICCAPTURE
InvalidStateException
OperationException
public int getCurrentAutomaticCapture() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETCURRENT -> CAP_AUTOMATICCAPTURE
InvalidStateException
OperationException
public int getDefaultAutomaticCapture() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETDEFAULT -> CAP_AUTOMATICCAPTURE
InvalidStateException
OperationException
public void setAutomaticCapture(int numberOfImages) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> CAP_AUTOMATICCAPTURE
numberOfImages
- number of images to automatically capture
InvalidStateException
OperationException
public void resetAutomaticCapture(int numberOfImages) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_RESET -> CAP_AUTOMATICCAPTURE
InvalidStateException
OperationException
public boolean getAutoScan() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> CAP_AUTOSCAN
true
if AutoScan is on; false
otherwise.
InvalidStateException
OperationException
public void setAutoScan(boolean autoScan) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> CAP_AUTOSCAN
autoScan
-
InvalidStateException
OperationException
public boolean getBarCodeDetectionEnabled() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> ICAP_BARCODEDETECTIONENABLED
true
if bar code detection is on; false
otherwise.
InvalidStateException
OperationException
public void setBarCodeDetectionEnabled(boolean enableBarCodeDetection) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> ICAP_BARCODEDETECTIONENABLED
enableBarCodeDetection
-
InvalidStateException
OperationException
public int[] getExtendedCapabilities() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> CAP_EXTENDEDCAPS
InvalidStateException
OperationException
public String[] getExtendedCapabilitiessStrings() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> CAP_EXTENDEDCAPS
InvalidStateException
OperationException
public void setExtendedCapabilities(int[] extendedCaps) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> CAP_EXTENDEDCAPS
extendedCaps
- List of extended capabilities. The codes of capbailities form an int[].
InvalidStateException
OperationException
public double getGamma() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> ICAP_GAMMA
InvalidStateException
OperationException
public void setGamma(double gamma) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> ICAP_GAMMA
gamma
-
InvalidStateException
OperationException
public boolean getDeviceOnline() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> CAP_DEVICEONLINE
true
if the physical hardware (e.g., scanner, digital camera,
image database, etc.) that represents the image source is attached, powered on,
and communicating. false
otherwise.
InvalidStateException
OperationException
public String getDeviceDateTime() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> CAP_DEVICETIMEDATE
InvalidStateException
OperationException
public String getAuthor() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> CAP_AUTHOR
InvalidStateException
OperationException
public void setAuthor(String author) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> CAP_AUTHOR
author
- author of acquired image (may include a copyright string)
InvalidStateException
OperationException
public String getCaption() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> CAP_CAPTION
InvalidStateException
OperationException
public void setCaption(String caption) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> CAP_CAPTION
caption
- a general note about the acquired image
InvalidStateException
OperationException
public void setPrinterString(String string) throws InvalidStateException, OperationException
string
-
InvalidStateException
OperationException
public String getPrinterString() throws InvalidStateException, OperationException
OperationException
InvalidStateException
public boolean getAutoBright() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> ICAP_AUTOBRIGHT
true
if the Source's Auto-brightness function (if any) is on; false
otherwise.
InvalidStateException
OperationException
public void setAutoBright(boolean enableAutoBright) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> ICAP_AUTOBRIGHT
enableAutoBright
-
InvalidStateException
OperationException
public boolean getIndicators() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> CAP_INDICATORS
true
if the Source will display a progress indicator
during acquisition and transfer, regardless of whether the Source's user
interface is active. false
if the progress indicator will be
suppressed if the Source's user interface is inactive.
InvalidStateException
OperationException
public void setIndicators(boolean useProgressIndicator) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> CAP_INDICATORS
useProgressIndicator
- set to true
if the Source needs display a progress indicator
during acquisition and transfer, regardless of whether the Source's user
interface is active; set to false
if the progress indicator needs to be
suppressed if the Source's user interface is inactive.
InvalidStateException
OperationException
public int getClearBuffers() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> CAP_CLEARBUFFERS
InvalidStateException
OperationException
public void setClearBuffers(int option) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> CAP_CLEARBUFFERS
option
- possible values: TWCB_AUTO causes the Source to
automatically clear the buffers when it transitions from state 4 to state 5,
or from state 5 to state 4; TWCB_CLEAR causes the Source to
immediately clear its buffers. TWCB_NOCLEAR causes the Source to
preserve images in the buffers.
InvalidStateException
OperationException
public int[] getMaxBatchBuffers() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> CAP_MAXBATCHBUFFERS
InvalidStateException
OperationException
public void setMaxBatchBuffers(int size) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> CAP_MAXBATCHBUFFERS
size
- number pages to be buffered
InvalidStateException
OperationException
public double[] getBrightness() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> ICAP_BRIGHTNESS
InvalidStateException
OperationException
public void setBrightness(double[] values) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> ICAP_BRIGHTNESS
values
- brightness values
InvalidStateException
OperationException
public double[] getContrast() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> ICAP_CONTRAST
InvalidStateException
OperationException
public void setContrast(double[] values) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> ICAP_CONTRAST
values
- brightness values
InvalidStateException
OperationException
public int[] getPrinter() throws InvalidStateException, OperationException
InvalidStateException
OperationException
public void setPrinter(int printer) throws InvalidStateException, OperationException
printer
-
InvalidStateException
OperationException
public boolean getPrinterEnabled() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> CAP_PRINTERENABLED
true
if on, false
otherwise.
InvalidStateException
OperationException
public void setPrinterEnabled(boolean enable) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> CAP_PRINTERENABLED
enable
-
InvalidStateException
OperationException
public int getPrinterMode() throws InvalidStateException, OperationException
OperationException
InvalidStateException
public double[][] getFrames() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> ICAP_FRAMES
InvalidStateException
OperationException
public double[] getCurrentFrame() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GETCURRENT -> ICAP_FRAMES
InvalidStateException
OperationException
public void setFrames(double[][] multipleFrames) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> ICAP_FRAMES
multipleFrames
- frames expressed in arrays of double arrays. each frame is
represented by a four-element double array: left, top, right and bottom.
InvalidStateException
OperationException
public void setFrames(double[] singleFrame) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> ICAP_FRAMES
singleFrame
- the frame is expressed in a double array: left, top, right and bottom.
InvalidStateException
OperationException
public int getMaxFrames() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> ICAP_MAXFRAMES
InvalidStateException
OperationException
public void setMaxFrames(int max) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> ICAP_MAXFRAMES
max
- the maximum number of frames the Source can provide
InvalidStateException
OperationException
public int[] getSupportedSizes() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> ICAP_SUPPORTEDSIZES
InvalidStateException
OperationException
public void setSupportedSizes(int[] sizes) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> ICAP_SUPPORTEDSIZES
sizes
- sizes of fixed frames
InvalidStateException
OperationException
public boolean getPatchCodeDetectionEnabled() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> ICAP_PATCHCODEDETECTIONENABLED
InvalidStateException
OperationException
public void setPatchCodeDetectionEnabled(boolean enable) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> ICAP_PATCHCODEDETECTIONENABLED
enable
-
InvalidStateException
OperationException
public void setDuplexEnabled(boolean enable) throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_SET -> CAP_DUPLEXENABLED
enable
- turn on or off of duplex
InvalidStateException
OperationException
public boolean getDuplexEnabled() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> CAP_DUPLEXENABLED
InvalidStateException
OperationException
public int getDuplex() throws InvalidStateException, OperationException
DG_CONTROL / DAT_CAPABILITY / MSG_GET -> CAP_DUPLEX
InvalidStateException
OperationException
public static boolean getBoolean(Object o)
o
- an object, perferred of the type Long
true
if the object o
is instanceof Long and
o.intValue != 0
; false
otherwise.getInt(Object)
,
getDouble(Object)
public static boolean[] getBooleanArray(Object o)
o
- an object, perferred of the type Long[]
or Long
boolean[]
if values have been extracted successfully;
null
otherwise.getBoolean(Object)
,
getIntArray(Object)
,
getDoubleArray(Object)
public static int getInt(Object o)
int
from an object.
o
- the object, perferred of the type Long
Source.INVALID_NUMBER
if o is null
or not of the type Long;
o.intValue()
otherwise.getBoolean(Object)
,
getDouble(Object)
public static int[] getIntArray(Object o)
o
- the object, perferred of the type Long[]
or Long
int[]
if values have been extracted successfully;
null
otherwise.getInt(Object)
,
getBooleanArray(Object)
,
getDoubleArray(Object)
public static double getDouble(Object o)
double
from an object.
o
- the object, perferred of the type Long
Source.INVALID_NUMBER
if o is null
or not of the type Long;
o.intValue()
otherwise.getBoolean(Object)
,
#getInt(Object)(Object)
public static double[] getDoubleArray(Object o)
o
- the object, perferred of the type Double[]
or Double
double[]
if values have been extracted successfully;
null
otherwise.getDouble(Object)
,
getBooleanArray(Object)
,
getIntArray(Object)
public Object getCapability(int mesgType, int capabilityCode, int expectedContainerType) throws InvalidStateException, OperationException
mesgType
- GET type: valid values: MSG_GET, MSG_GETCURRENT, MSG_GETDEFAULT
capabilityCode
- the capability code, eg. CAP_SUPPORTEDCAPS
expectedContainerType
- the expected container type. If unkown, or do not care, simply
put TWON_DONTCARE16
.
ValueContainerOneValue
and item type is TWTY_UINT16
,
then a Long
will be returned; For a single value container,
the retuned object may be of the following types: Long, Double, String
in case of multi-value containers, the returned object may be of the following type:
Long[], Double[], String[]
.
InvalidStateException
OperationException
getInt(Object)
,
getDouble(Object)
,
getBoolean(Object)
,
getIntArray(Object)
,
getDoubleArray(Object)
,
getBooleanArray(Object)
public void resetCapability(int capabilityCode) throws InvalidStateException, OperationException
capabilityCode
- the capability code
InvalidStateException
OperationException
public void setCapability(int capabilityCode, ValueContainer container) throws InvalidStateException, OperationException
capabilityCode
- the capability to be setcontainer
- a container containing values to be set
InvalidStateException
OperationException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |