public class MacScanManager extends ScanManager
VERSION| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
convertImage(String sourceFiles,
String targetFile,
String targetFormat,
int jpegQuality,
String tiffCompressionScheme) |
List<Device> |
getDevices()
Lists all the devices available on the system.
|
static MacScanManager |
getInstance() |
String |
getLibraryVersion() |
void |
load()
Initializes the manager.
|
File[] |
quickScanUsingUI(File destinationFolder,
Component parentComponentForDialog,
String preferredFormat)
Performs a quick scan using system UI.
|
File[] |
quickScanUsingUI(File destinationFolder,
Component parentComponentForDialog,
String docName,
boolean advancedMode,
boolean scanMultipleFiles)
Advanced control.
|
Device |
selectDeviceByIdOrName(String idOrName)
Selects the device by id or name.
|
String |
selectDeviceUsingUI(Component parentComponentForDialog)
Prompts the system dialog in modal mode to allow the user to select a device
|
void |
unload()
Releases resources and invalidates the manager.
|
createDefaultManager, enableLogDebugToConsole, getDefaultManager, getTempFolder, isActive, isEnabledLogDebugToConsole, log, logDebug, logDebug, logDebugToConsole, logError, logError, logInfo, logInfo, logWarn, logWarn, main, quickScanUsingUI, quickScanUsingUI, selectDeviceUsingUI, setLoggerObjectpublic static MacScanManager getInstance()
public List<Device> getDevices() throws ScanException
ScanManagergetDevices in class ScanManagerScanExceptionpublic Device selectDeviceByIdOrName(String idOrName) throws ScanException
ScanManagerselectDeviceByIdOrName in class ScanManagerScanExceptionpublic String selectDeviceUsingUI(Component parentComponentForDialog) throws ScanException
ScanManagerselectDeviceUsingUI in class ScanManagerparentComponentForDialog - an optional UI component that owns the device selection dialog (modal).ScanExceptionpublic File[] quickScanUsingUI(File destinationFolder, Component parentComponentForDialog, String preferredFormat) throws ScanException
ScanManagerquickScanUsingUI in class ScanManagerdestinationFolder - folder to save scanned images into. Pass null to use system temp.parentComponentForDialog - an optional UI component that owns the device selection dialog (modal).preferredFormat - e.g., 'jpg', 'png' - no guaranteenull/empty array if user cancelledScanExceptionpublic File[] quickScanUsingUI(File destinationFolder, Component parentComponentForDialog, String docName, boolean advancedMode, boolean scanMultipleFiles) throws ScanException
destinationFolder - parentComponentForDialog - docName - advancedMode - scanMultipleFiles - ScanExceptionpublic void convertImage(String sourceFiles, String targetFile, String targetFormat, int jpegQuality, String tiffCompressionScheme) throws ScanException
convertImage in class ScanManagerScanExceptionpublic void load()
throws ScanException
ScanManagerload in class ScanManagerScanExceptionpublic void unload()
throws ScanException
ScanManagerunload in class ScanManagerScanExceptionpublic void close()
throws IOException
IOExceptionpublic String getLibraryVersion() throws ScanException
getLibraryVersion in class ScanManagerScanExceptionCopyright © 2014 LAB Asprise. All Rights Reserved.