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="BitVector";
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/encoder/Encoder.html" title="class in com.google.zxing.qrcode.encoder"><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/encoder/BitVector.html" target="_top"><B>FRAMES</B></A>
61 <A HREF="BitVector.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.encoder</FONT>
95 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.google.zxing.qrcode.encoder.BitVector</B>
99 <DT><PRE>public final class <B>BitVector</B><DT>extends java.lang.Object</DL>
103 JAVAPORT: This should be combined with BitArray in the future, although that class is not yet
104 dynamically resizeable. This implementation is reasonable but there is a lot of function calling
105 in loops I'd like to get rid of.
110 <DT><B>Author:</B></DT>
111 <DD>satorux@google.com (Satoru Takabayashi) - creator, dswitkin@google.com (Daniel Switkin) - ported from C++</DD>
117 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
119 <A NAME="constructor_summary"><!-- --></A>
120 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
121 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
122 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
123 <B>Constructor Summary</B></FONT></TH>
125 <TR BGCOLOR="white" CLASS="TableRowColor">
126 <TD><CODE><B><A HREF="../../../../../com/google/zxing/qrcode/encoder/BitVector.html#BitVector()">BitVector</A></B>()</CODE>
129 </TD>
133 <!-- ========== METHOD SUMMARY =========== -->
135 <A NAME="method_summary"><!-- --></A>
136 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
137 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
138 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
139 <B>Method Summary</B></FONT></TH>
141 <TR BGCOLOR="white" CLASS="TableRowColor">
142 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
143 <CODE> void</CODE></FONT></TD>
144 <TD><CODE><B><A HREF="../../../../../com/google/zxing/qrcode/encoder/BitVector.html#appendBit(int)">appendBit</A></B>(int bit)</CODE>
147 </TD>
149 <TR BGCOLOR="white" CLASS="TableRowColor">
150 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
151 <CODE> void</CODE></FONT></TD>
152 <TD><CODE><B><A HREF="../../../../../com/google/zxing/qrcode/encoder/BitVector.html#appendBits(int, int)">appendBits</A></B>(int value,
153 int numBits)</CODE>
156 </TD>
158 <TR BGCOLOR="white" CLASS="TableRowColor">
159 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
160 <CODE> void</CODE></FONT></TD>
161 <TD><CODE><B><A HREF="../../../../../com/google/zxing/qrcode/encoder/BitVector.html#appendBitVector(com.google.zxing.qrcode.encoder.BitVector)">appendBitVector</A></B>(<A HREF="../../../../../com/google/zxing/qrcode/encoder/BitVector.html" title="class in com.google.zxing.qrcode.encoder">BitVector</A> bits)</CODE>
164 </TD>
166 <TR BGCOLOR="white" CLASS="TableRowColor">
167 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
168 <CODE> int</CODE></FONT></TD>
169 <TD><CODE><B><A HREF="../../../../../com/google/zxing/qrcode/encoder/BitVector.html#at(int)">at</A></B>(int index)</CODE>
172 </TD>
174 <TR BGCOLOR="white" CLASS="TableRowColor">
175 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
176 <CODE> byte[]</CODE></FONT></TD>
177 <TD><CODE><B><A HREF="../../../../../com/google/zxing/qrcode/encoder/BitVector.html#getArray()">getArray</A></B>()</CODE>
180 </TD>
182 <TR BGCOLOR="white" CLASS="TableRowColor">
183 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
184 <CODE> int</CODE></FONT></TD>
185 <TD><CODE><B><A HREF="../../../../../com/google/zxing/qrcode/encoder/BitVector.html#size()">size</A></B>()</CODE>
188 </TD>
190 <TR BGCOLOR="white" CLASS="TableRowColor">
191 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
192 <CODE> int</CODE></FONT></TD>
193 <TD><CODE><B><A HREF="../../../../../com/google/zxing/qrcode/encoder/BitVector.html#sizeInBytes()">sizeInBytes</A></B>()</CODE>
196 </TD>
198 <TR BGCOLOR="white" CLASS="TableRowColor">
199 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
200 <CODE> java.lang.String</CODE></FONT></TD>
201 <TD><CODE><B><A HREF="../../../../../com/google/zxing/qrcode/encoder/BitVector.html#toString()">toString</A></B>()</CODE>
204 </TD>
206 <TR BGCOLOR="white" CLASS="TableRowColor">
207 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
208 <CODE> void</CODE></FONT></TD>
209 <TD><CODE><B><A HREF="../../../../../com/google/zxing/qrcode/encoder/BitVector.html#xor(com.google.zxing.qrcode.encoder.BitVector)">xor</A></B>(<A HREF="../../../../../com/google/zxing/qrcode/encoder/BitVector.html" title="class in com.google.zxing.qrcode.encoder">BitVector</A> other)</CODE>
212 </TD>
215 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
216 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
217 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
218 <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
220 <TR BGCOLOR="white" CLASS="TableRowColor">
221 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
227 <!-- ========= CONSTRUCTOR DETAIL ======== -->
229 <A NAME="constructor_detail"><!-- --></A>
230 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
231 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
232 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
233 <B>Constructor Detail</B></FONT></TH>
237 <A NAME="BitVector()"><!-- --></A><H3>
240 public <B>BitVector</B>()</PRE>
244 <!-- ============ METHOD DETAIL ========== -->
246 <A NAME="method_detail"><!-- --></A>
247 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
248 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
249 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
250 <B>Method Detail</B></FONT></TH>
254 <A NAME="at(int)"><!-- --></A><H3>
257 public int <B>at</B>(int index)</PRE>
265 <A NAME="size()"><!-- --></A><H3>
268 public int <B>size</B>()</PRE>
276 <A NAME="sizeInBytes()"><!-- --></A><H3>
279 public int <B>sizeInBytes</B>()</PRE>
287 <A NAME="appendBit(int)"><!-- --></A><H3>
290 public void <B>appendBit</B>(int bit)</PRE>
298 <A NAME="appendBits(int, int)"><!-- --></A><H3>
301 public void <B>appendBits</B>(int value,
302 int numBits)</PRE>
310 <A NAME="appendBitVector(com.google.zxing.qrcode.encoder.BitVector)"><!-- --></A><H3>
313 public void <B>appendBitVector</B>(<A HREF="../../../../../com/google/zxing/qrcode/encoder/BitVector.html" title="class in com.google.zxing.qrcode.encoder">BitVector</A> bits)</PRE>
321 <A NAME="xor(com.google.zxing.qrcode.encoder.BitVector)"><!-- --></A><H3>
324 public void <B>xor</B>(<A HREF="../../../../../com/google/zxing/qrcode/encoder/BitVector.html" title="class in com.google.zxing.qrcode.encoder">BitVector</A> other)</PRE>
332 <A NAME="toString()"><!-- --></A><H3>
335 public java.lang.String <B>toString</B>()</PRE>
338 <DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
346 <A NAME="getArray()"><!-- --></A><H3>
349 public byte[] <B>getArray</B>()</PRE>
355 <!-- ========= END OF CLASS DATA ========= -->
359 <!-- ======= START OF BOTTOM NAVBAR ====== -->
360 <A NAME="navbar_bottom"><!-- --></A>
361 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
362 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
364 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
365 <A NAME="navbar_bottom_firstrow"><!-- --></A>
366 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
367 <TR ALIGN="center" VALIGN="top">
368 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
369 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
370 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
371 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
372 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
373 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
374 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
378 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
379 <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>
384 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
385 PREV CLASS
386 <A HREF="../../../../../com/google/zxing/qrcode/encoder/Encoder.html" title="class in com.google.zxing.qrcode.encoder"><B>NEXT CLASS</B></A></FONT></TD>
387 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
388 <A HREF="../../../../../index.html?com/google/zxing/qrcode/encoder/BitVector.html" target="_top"><B>FRAMES</B></A>
389 <A HREF="BitVector.html" target="_top"><B>NO FRAMES</B></A>
390 <SCRIPT type="text/javascript">
393 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
398 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
405 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
406 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
407 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
408 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
411 <A NAME="skip-navbar_bottom"></A>
412 <!-- ======== END OF BOTTOM NAVBAR ======= -->