* @param resultString {@link StringBuffer} to append decoded chars to\r
* @throws ReaderException if decoding could not complete successfully\r
*/\r
- static void decodeMiddle(BitArray row, int payloadStart, int payloadEnd,\r
+ private static void decodeMiddle(BitArray row, int payloadStart, int payloadEnd,\r
StringBuffer resultString) throws ReaderException {\r
\r
// Digits are interleaved in pairs - 5 black lines for one digit, and the\r
// ref: http://www.barcode-1.net/i25code.html\r
validateQuietZone(row, endPattern[0]);\r
\r
- // Now recalc the indicies of where the 'endblock' starts & stops to\r
- // accomodate\r
+ // Now recalculate the indices of where the 'endblock' starts & stops to\r
+ // accommodate\r
// the reversed nature of the search\r
int temp = endPattern[0];\r
endPattern[0] = row.getSize() - endPattern[1];\r
\r
return endPattern;\r
} finally {\r
- // Put the row back the righ way.\r
+ // Put the row back the right way.\r
row.reverse();\r
}\r
}\r
* ints\r
* @throws ReaderException if pattern is not found\r
*/\r
- static int[] findGuardPattern(BitArray row, int rowOffset, int[] pattern) throws ReaderException {\r
+ private static int[] findGuardPattern(BitArray row, int rowOffset, int[] pattern) throws ReaderException {\r
\r
// TODO: This is very similar to implementation in AbstractUPCEANReader. Consider if they can be\r
// merged to a single method.\r