Lines Matching defs:mode
43 * This class can represent kanji mode segments, but provides no help in encoding them
52 * encoded in byte mode. All input byte arrays are acceptable.
54 * s.getBytes(StandardCharsets.UTF_8)}) and encoded as a byte mode segment.</p>
71 * Returns a segment representing the specified string of decimal digits encoded in numeric mode.
101 * Returns a segment representing the specified text string encoded in alphanumeric mode.
117 throw new IllegalArgumentException("String contains unencodable characters in alphanumeric mode");
181 * Tests whether the specified string can be encoded as a segment in numeric mode.
199 * Tests whether the specified string can be encoded as a segment in alphanumeric mode.
203 * @return {@code true} iff each character is in the alphanumeric mode character set
220 /** The mode indicator of this segment. Not {@code null}. */
221 public final Mode mode;
224 * numeric/alphanumeric/kanji mode, bytes for byte mode, and 0 for ECI mode.
239 * The character count (numCh) must agree with the mode and the bit buffer length,
241 * @param md the mode (not {@code null})
245 * @throws NullPointerException if the mode or data is {@code null}
249 mode = Objects.requireNonNull(md);
266 int ccbits = seg.mode.numCharCountBits(version);
312 // The mode indicator bits, which is a uint4 value (range 0 to 15).
321 private Mode(int mode, int... ccbits) {
322 modeBits = mode;
329 // Returns the bit width of the character count field for a segment in this mode