@@ -136,16 +136,16 @@ public int getType() {
136136 * not be called from the main application thread. A blocked call will be canceled with
137137 * {@link IOException} if {@link #close} is called from another thread.
138138 *
139- * @param pageIndex index of first page to read, starting from 0
139+ * @param pageOffset index of first page to read, starting from 0
140140 * @return 4 pages (16 bytes)
141141 * @throws TagLostException if the tag leaves the field
142142 * @throws IOException if there is an I/O failure, or the operation is canceled
143143 */
144- public byte [] readPages (int pageIndex ) throws IOException {
145- validatePageIndex (pageIndex );
144+ public byte [] readPages (int pageOffset ) throws IOException {
145+ validatePageIndex (pageOffset );
146146 checkConnected ();
147147
148- byte [] cmd = { 0x30 , (byte ) pageIndex };
148+ byte [] cmd = { 0x30 , (byte ) pageOffset };
149149 return transceive (cmd , false );
150150 }
151151
@@ -159,18 +159,18 @@ public byte[] readPages(int pageIndex) throws IOException {
159159 * not be called from the main application thread. A blocked call will be canceled with
160160 * {@link IOException} if {@link #close} is called from another thread.
161161 *
162- * @param pageIndex index of page to write, starting from 0
162+ * @param pageOffset index of page to write, starting from 0
163163 * @param data 4 bytes to write
164164 * @throws TagLostException if the tag leaves the field
165165 * @throws IOException if there is an I/O failure, or the operation is canceled
166166 */
167- public void writePage (int pageIndex , byte [] data ) throws IOException {
168- validatePageIndex (pageIndex );
167+ public void writePage (int pageOffset , byte [] data ) throws IOException {
168+ validatePageIndex (pageOffset );
169169 checkConnected ();
170170
171171 byte [] cmd = new byte [data .length + 2 ];
172172 cmd [0 ] = (byte ) 0xA2 ;
173- cmd [1 ] = (byte ) pageIndex ;
173+ cmd [1 ] = (byte ) pageOffset ;
174174 System .arraycopy (data , 0 , cmd , 2 , data .length );
175175
176176 transceive (cmd , false );
0 commit comments