📄 sourcemanager.html
字号:
<A NAME="isTwainAvailable()"><!-- --></A><H3>
isTwainAvailable</H3>
<PRE>
public boolean <B>isTwainAvailable</B>()</PRE>
<DL>
<DD>Checks whether the system supports Twain. Status of source manager will not be changed.
<P>
<DD><DL>
<DT><B>Returns:</B><DD><code>true</code> if the system supports Twain; <code>false</code> otherwise.</DL>
</DD>
</DL>
<HR>
<A NAME="getJTwainDLLVersion()"><!-- --></A><H3>
getJTwainDLLVersion</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getJTwainDLLVersion</B>()</PRE>
<DL>
<DD>Returns the version of JTwain native DLL used.
<P>
<DD><DL>
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>
<A NAME="getAllSources()"><!-- --></A><H3>
getAllSources</H3>
<PRE>
public <A HREF="../../../../com/asprise/util/jtwain/Source.html" title="class in com.asprise.util.jtwain">Source</A>[] <B>getAllSources</B>()</PRE>
<DL>
<DD>Queries all the available sources. Source manager will be opened if it has not been opened yet.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>an array contains all the Sources.</DL>
</DD>
</DL>
<HR>
<A NAME="getDefaultSource()"><!-- --></A><H3>
getDefaultSource</H3>
<PRE>
public <A HREF="../../../../com/asprise/util/jtwain/Source.html" title="class in com.asprise.util.jtwain">Source</A> <B>getDefaultSource</B>()</PRE>
<DL>
<DD>Gets the default data source. Source manager will be opened if it has not been opened yet.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the default data source. <code>null</code> if no source available.</DL>
</DD>
</DL>
<HR>
<A NAME="openSource(com.asprise.util.jtwain.Source)"><!-- --></A><H3>
openSource</H3>
<PRE>
public void <B>openSource</B>(<A HREF="../../../../com/asprise/util/jtwain/Source.html" title="class in com.asprise.util.jtwain">Source</A> source) throws <A HREF="../../../../com/asprise/util/jtwain/JTwainException.html" title="class in com.asprise.util.jtwain">JTwainException</A></PRE>
<DL>
<DD>Opens the target data source. Any previously opened source will be closed
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>source</CODE> - the target source to be opened<DT><B>Throws:</B><DD><CODE><A HREF="../../../../com/asprise/util/jtwain/JTwainException.html" title="class in com.asprise.util.jtwain">JTwainException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getCurrentSource()"><!-- --></A><H3>
getCurrentSource</H3>
<PRE>
public <A HREF="../../../../com/asprise/util/jtwain/Source.html" title="class in com.asprise.util.jtwain">Source</A> <B>getCurrentSource</B>()</PRE>
<DL>
<DD>Gets the current active source.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the current active source; <b>null</b> if there is no source opened.</DL>
</DD>
</DL>
<HR>
<A NAME="getState()"><!-- --></A><H3>
getState</H3>
<PRE>
public int <B>getState</B>() throws <A HREF="../../../../com/asprise/util/jtwain/JTwainException.html" title="class in com.asprise.util.jtwain">JTwainException</A></PRE>
<DL>
<DD>Gets the state of the source.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the state of the source. Possible values: <ul><li>1 - Pre-Session <li>2 - Source Manager Loaded <li>3 - Source Manager Open <li>4 - Source Open <li>5 - Source Enabled <li>6 - Transfer Ready <li>7 - Transferring </ul><DT><B>Throws:</B><DD><CODE><A HREF="../../../../com/asprise/util/jtwain/JTwainException.html" title="class in com.asprise.util.jtwain">JTwainException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="closeSource()"><!-- --></A><H3>
closeSource</H3>
<PRE>
public void <B>closeSource</B>() throws <A HREF="../../../../com/asprise/util/jtwain/JTwainException.html" title="class in com.asprise.util.jtwain">JTwainException</A></PRE>
<DL>
<DD>Closes the current active source.
<P>
<DD><DL>
<DT><B>Throws:</B><DD><CODE><A HREF="../../../../com/asprise/util/jtwain/JTwainException.html" title="class in com.asprise.util.jtwain">JTwainException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="closeSourceManager()"><!-- --></A><H3>
closeSourceManager</H3>
<PRE>
public static void <B>closeSourceManager</B>()</PRE>
<DL>
<DD>Closes the source manager.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="unloadSourceManager()"><!-- --></A><H3>
unloadSourceManager</H3>
<PRE>
public static void <B>unloadSourceManager</B>()</PRE>
<DL>
<DD>Unloads source manager.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="selectSourceUI()"><!-- --></A><H3>
selectSourceUI</H3>
<PRE>
public <A HREF="../../../../com/asprise/util/jtwain/Source.html" title="class in com.asprise.util.jtwain">Source</A> <B>selectSourceUI</B>()</PRE>
<DL>
<DD>Displays a dialog to let the user select a data source. Source manager will be opened if it has not been opened yet.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the selected data source; <code>null</code> if the user presses CANCEL button.</DL>
</DD>
</DL>
<HR>
<A NAME="selectSource(com.asprise.util.jtwain.Source)"><!-- --></A><H3>
selectSource</H3>
<PRE>
public <A HREF="../../../../com/asprise/util/jtwain/Source.html" title="class in com.asprise.util.jtwain">Source</A> <B>selectSource</B>(<A HREF="../../../../com/asprise/util/jtwain/Source.html" title="class in com.asprise.util.jtwain">Source</A> source)</PRE>
<DL>
<DD>Selects a Source and a Source as the current active source. There can only be one active source at any time. Source manager will be opened if it has not been opened yet.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>source</CODE> - the Source to be select. <code>null</code> argument results source selection dialog.<DT><B>Returns:</B><DD>a Source with full details, i.e., complete profile identity.</DL>
</DD>
</DL>
<HR>
<A NAME="selectSourceByName(java.lang.String)"><!-- --></A><H3>
selectSourceByName</H3>
<PRE>
public <A HREF="../../../../com/asprise/util/jtwain/Source.html" title="class in com.asprise.util.jtwain">Source</A> <B>selectSourceByName</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> sourceName)</PRE>
<DL>
<DD>Selects the source with the specified name as the current active source. Use getAllSources() to query sources and their names. There can only be one active source at any time. Source manager will be opened if it has not been opened yet.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>sourceName</CODE> - the name of the Source to be select. <code>null</code> argument results source selection dialog.<DT><B>Returns:</B><DD>a Source with full details, i.e., complete profile identity.<DT><B>See Also:</B><DD><A HREF="../../../../com/asprise/util/jtwain/SourceManager.html#getAllSources()"><CODE>getAllSources()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="setLibraryPath(java.lang.String)"><!-- --></A><H3>
setLibraryPath</H3>
<PRE>
public static void <B>setLibraryPath</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> libraryPath)</PRE>
<DL>
<DD>Set the DLL library path. The default library path is <code>null</code>, in which case the system will load the DLL library from default locations, such as system directory.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>libraryPath</CODE> - path of the DLL library to be loaded; set to <code>null</code> to let the system load the library by automatic search.</DL>
</DD>
</DL>
<HR>
<A NAME="getLibraryPath()"><!-- --></A><H3>
getLibraryPath</H3>
<PRE>
public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getLibraryPath</B>()</PRE>
<DL>
<DD>Get the DLL library path.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the library path. <code>null</code> if no library path has been set yet.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SourceManager.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<a href='http://www.asprise.com/product/jtwain' target=_blank><img src='http://asprise.com/labAsprise.gif' alt='JTwain v9 - Lab Asprise! All Rights Reserved.' border=0></a></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../com/asprise/util/jtwain/Source.html" title="class in com.asprise.util.jtwain"><B>PREV CLASS</B></A>
NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A>
<A HREF="SourceManager.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -