1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <!-- Generated by javadoc (build 1.6.0_13) on Fri Jun 26 13:12:29 EDT 2009 -->
10 <META NAME="date" CONTENT="2009-06-26">
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
14 <SCRIPT type="text/javascript">
15 function windowTitle()
17 if (location.href.indexOf('is-external=true') == -1) {
18 parent.document.title="Decoder";
27 <BODY BGCOLOR="white" onload="windowTitle();">
31 <!-- ========= START OF TOP NAVBAR ======= -->
32 <A NAME="navbar_top"><!-- --></A>
33 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
36 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37 <A NAME="navbar_top_firstrow"><!-- --></A>
38 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39 <TR ALIGN="center" VALIGN="top">
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
42 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
50 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
56 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57 PREV CLASS
58 <A HREF="../../../../../com/google/zxing/qrcode/decoder/ErrorCorrectionLevel.html" title="class in com.google.zxing.qrcode.decoder"><B>NEXT CLASS</B></A></FONT></TD>
59 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
60 <A HREF="../../../../../index.html?com/google/zxing/qrcode/decoder/Decoder.html" target="_top"><B>FRAMES</B></A>
61 <A HREF="Decoder.html" target="_top"><B>NO FRAMES</B></A>
62 <SCRIPT type="text/javascript">
65 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
70 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
77 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
78 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
79 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
80 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
83 <A NAME="skip-navbar_top"></A>
84 <!-- ========= END OF TOP NAVBAR ========= -->
87 <!-- ======== START OF CLASS DATA ======== -->
90 com.google.zxing.qrcode.decoder</FONT>
95 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.google.zxing.qrcode.decoder.Decoder</B>
99 <DT><PRE>public final class <B>Decoder</B><DT>extends java.lang.Object</DL>
103 <p>The main class which implements QR Code decoding -- as opposed to locating and extracting
104 the QR Code from an image.</p>
109 <DT><B>Author:</B></DT>
116 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
118 <A NAME="constructor_summary"><!-- --></A>
119 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
120 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
121 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
122 <B>Constructor Summary</B></FONT></TH>
124 <TR BGCOLOR="white" CLASS="TableRowColor">
125 <TD><CODE><B><A HREF="../../../../../com/google/zxing/qrcode/decoder/Decoder.html#Decoder()">Decoder</A></B>()</CODE>
128 </TD>
132 <!-- ========== METHOD SUMMARY =========== -->
134 <A NAME="method_summary"><!-- --></A>
135 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
136 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
137 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
138 <B>Method Summary</B></FONT></TH>
140 <TR BGCOLOR="white" CLASS="TableRowColor">
141 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
142 <CODE> <A HREF="../../../../../com/google/zxing/common/DecoderResult.html" title="class in com.google.zxing.common">DecoderResult</A></CODE></FONT></TD>
143 <TD><CODE><B><A HREF="../../../../../com/google/zxing/qrcode/decoder/Decoder.html#decode(com.google.zxing.common.BitMatrix)">decode</A></B>(<A HREF="../../../../../com/google/zxing/common/BitMatrix.html" title="class in com.google.zxing.common">BitMatrix</A> bits)</CODE>
146 Decodes a QR Code represented as a <A HREF="../../../../../com/google/zxing/common/BitMatrix.html" title="class in com.google.zxing.common"><CODE>BitMatrix</CODE></A>.</TD>
148 <TR BGCOLOR="white" CLASS="TableRowColor">
149 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
150 <CODE> <A HREF="../../../../../com/google/zxing/common/DecoderResult.html" title="class in com.google.zxing.common">DecoderResult</A></CODE></FONT></TD>
151 <TD><CODE><B><A HREF="../../../../../com/google/zxing/qrcode/decoder/Decoder.html#decode(boolean[][])">decode</A></B>(boolean[][] image)</CODE>
154 Convenience method that can decode a QR Code represented as a 2D array of booleans.</TD>
157 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
158 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
159 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
160 <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
162 <TR BGCOLOR="white" CLASS="TableRowColor">
163 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
169 <!-- ========= CONSTRUCTOR DETAIL ======== -->
171 <A NAME="constructor_detail"><!-- --></A>
172 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
173 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
174 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
175 <B>Constructor Detail</B></FONT></TH>
179 <A NAME="Decoder()"><!-- --></A><H3>
182 public <B>Decoder</B>()</PRE>
186 <!-- ============ METHOD DETAIL ========== -->
188 <A NAME="method_detail"><!-- --></A>
189 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
190 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
191 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
192 <B>Method Detail</B></FONT></TH>
196 <A NAME="decode(boolean[][])"><!-- --></A><H3>
199 public <A HREF="../../../../../com/google/zxing/common/DecoderResult.html" title="class in com.google.zxing.common">DecoderResult</A> <B>decode</B>(boolean[][] image)
200 throws <A HREF="../../../../../com/google/zxing/ReaderException.html" title="class in com.google.zxing">ReaderException</A></PRE>
202 <DD><p>Convenience method that can decode a QR Code represented as a 2D array of booleans.
203 "true" is taken to mean a black module.</p>
206 <DT><B>Parameters:</B><DD><CODE>image</CODE> - booleans representing white/black QR Code modules
207 <DT><B>Returns:</B><DD>text and bytes encoded within the QR Code
209 <DD><CODE><A HREF="../../../../../com/google/zxing/ReaderException.html" title="class in com.google.zxing">ReaderException</A></CODE> - if the QR Code cannot be decoded</DL>
214 <A NAME="decode(com.google.zxing.common.BitMatrix)"><!-- --></A><H3>
217 public <A HREF="../../../../../com/google/zxing/common/DecoderResult.html" title="class in com.google.zxing.common">DecoderResult</A> <B>decode</B>(<A HREF="../../../../../com/google/zxing/common/BitMatrix.html" title="class in com.google.zxing.common">BitMatrix</A> bits)
218 throws <A HREF="../../../../../com/google/zxing/ReaderException.html" title="class in com.google.zxing">ReaderException</A></PRE>
220 <DD><p>Decodes a QR Code represented as a <A HREF="../../../../../com/google/zxing/common/BitMatrix.html" title="class in com.google.zxing.common"><CODE>BitMatrix</CODE></A>. A 1 or "true" is taken to mean a black module.</p>
223 <DT><B>Parameters:</B><DD><CODE>bits</CODE> - booleans representing white/black QR Code modules
224 <DT><B>Returns:</B><DD>text and bytes encoded within the QR Code
226 <DD><CODE><A HREF="../../../../../com/google/zxing/ReaderException.html" title="class in com.google.zxing">ReaderException</A></CODE> - if the QR Code cannot be decoded</DL>
229 <!-- ========= END OF CLASS DATA ========= -->
233 <!-- ======= START OF BOTTOM NAVBAR ====== -->
234 <A NAME="navbar_bottom"><!-- --></A>
235 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
236 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
238 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
239 <A NAME="navbar_bottom_firstrow"><!-- --></A>
240 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
241 <TR ALIGN="center" VALIGN="top">
242 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
243 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
244 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
245 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
246 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
247 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
248 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
252 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
253 <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> var pageTracker = _gat._getTracker("UA-788492-5"); pageTracker._initData(); pageTracker._trackPageview(); </script></EM>
258 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
259 PREV CLASS
260 <A HREF="../../../../../com/google/zxing/qrcode/decoder/ErrorCorrectionLevel.html" title="class in com.google.zxing.qrcode.decoder"><B>NEXT CLASS</B></A></FONT></TD>
261 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
262 <A HREF="../../../../../index.html?com/google/zxing/qrcode/decoder/Decoder.html" target="_top"><B>FRAMES</B></A>
263 <A HREF="Decoder.html" target="_top"><B>NO FRAMES</B></A>
264 <SCRIPT type="text/javascript">
267 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
272 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
279 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
280 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
281 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
282 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
285 <A NAME="skip-navbar_bottom"></A>
286 <!-- ======== END OF BOTTOM NAVBAR ======= -->