-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
98 lines (97 loc) · 5.68 KB
/
index.html
File metadata and controls
98 lines (97 loc) · 5.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<!--
| Generated by Apache Maven Doxia Site Renderer 1.8.1 from src/site/apt/quickstart/index.apt at 2018-10-21
| Rendered using Apache Maven Fluido Skin 1.7
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="Date-Revision-yyyymmdd" content="20181021" />
<meta http-equiv="Content-Language" content="en" />
<title>usb4java – Quick start</title>
<link rel="stylesheet" href="../css/apache-maven-fluido-1.7.min.css" />
<link rel="stylesheet" href="../css/site.css" />
<link rel="stylesheet" href="../css/print.css" media="print" />
<script type="text/javascript" src="../js/apache-maven-fluido-1.7.min.js"></script>
<link href="favicon.ico" rel="SHORTCUT ICON" />
</head>
<body class="topBarDisabled">
<a href="https://github.com/usb4java">
<img style="position: absolute; top: 0; right: 0; border: 0; z-index: 10000;"
src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"
alt="Fork me on GitHub">
</a>
<div class="container-fluid">
<div id="banner">
<div class="pull-left"><a href=".././" id="bannerLeft"><img src="../images/logo.png" alt="usb4java"/></a></div>
<div class="pull-right"></div>
<div class="clear"><hr/></div>
</div>
<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate">Last Published: 2018-10-21<span class="divider">|</span>
</li>
<li id="projectVersion">Version: 1.3.0<span class="divider">|</span></li>
<li class=""><a href=".././" title="usb4java">usb4java</a><span class="divider">/</span></li>
<li class="active ">Quick start</li>
<li class="pull-right"><span class="divider">|</span>
<a href="http://libusb.info/" class="externalLink" title="libusb">libusb</a></li>
<li class="pull-right"><a href="http://javax-usb.sourceforge.net/" class="externalLink" title="javax-usb">javax-usb</a></li>
</ul>
</div>
<div class="row-fluid">
<div id="leftColumn" class="span2">
<div class="well sidebar-nav">
<ul class="nav nav-list">
<li class="nav-header">usb4java</li>
<li><a href="../index.html" title="About"><span class="none"></span>About</a></li>
<li class="active"><a href="#"><span class="icon-chevron-down"></span>Quick start</a>
<ul class="nav nav-list">
<li><a href="../quickstart/libusb.html" title="Low-level (libusb) API"><span class="none"></span>Low-level (libusb) API</a></li>
<li><a href="../quickstart/javax-usb.html" title="High-level (javax-usb) API"><span class="none"></span>High-level (javax-usb) API</a></li>
</ul>
</li>
<li><a href="../faq.html" title="FAQ"><span class="none"></span>FAQ</a></li>
<li><a href="../configuration.html" title="Configuration"><span class="none"></span>Configuration</a></li>
<li><a href="../nativelibs.html" title="Native libs"><span class="none"></span>Native libs</a></li>
<li class="nav-header">Project Documentation</li>
<li><a href="../project-info.html" title="Project Information"><span class="icon-chevron-right"></span>Project Information</a></li>
<li><a href="../project-reports.html" title="Project Reports"><span class="icon-chevron-right"></span>Project Reports</a></li>
</ul>
<hr />
<div id="poweredBy">
<div class="clear"></div>
<div class="clear"></div>
<div class="clear"></div>
<div class="clear"></div>
<a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="../images/logos/maven-feather.png" /></a>
</div>
</div>
</div>
<div id="bodyColumn" class="span10" >
<div class="section">
<h2><a name="Quick_start"></a>Quick start</h2>
<div class="section">
<h3><a name="Choose_an_API"></a>Choose an API</h3>
<p>usb4java provides two different APIs you can choose from:</p>
<ul>
<li><a href="./libusb.html">The low-level (libusb) API</a></li>
<li><a href="./javax-usb.html">The high-level (javax-usb) API</a></li></ul>
<p>The low-level API closely follows the C API of the <a class="externalLink" href="http://libusb.info/">libusb</a> project. This API has the advantage that it provides the same functionality as libusb does. And if you know the C API of libusb then you will most likely feel right at home when using this API with usb4java. It is also easy to convert existing C libusb programs into Java. The disadvantage is that you will have a hard time changing your code when you later switch to a different Java USB library. And as a pure Java developer you may dislike the API because it is too low-level (For example most methods return error codes instead of throwing exceptions).</p>
<p>The high-level API simply implements the <a class="externalLink" href="http://javax-usb.sourceforge.net/">javax-usb (JSR80) API</a>. One advantage of this API is that it is implementation-independent. So it is easy to switch to a different javax-usb implementation later without changing your code. Another advantage is that this API is object oriented and is much easier to use for Java developers. The disadvantage is that the javax-usb specification is very old (maybe even abandoned) and may lack support for some newer USB techniques provided by the low-level API.</p></div></div>
</div>
</div>
</div>
<hr/>
<footer>
<div class="container-fluid">
<div class="row-fluid">
<p>Copyright ©2011–2018
<a href="http://usb4java.org/">usb4java Team</a>.
All rights reserved.</p>
</div>
</div>
</footer>
</body>
</html>