static void a(int i, int j, Mode mode, BitArray bitarray) { int k = mode.getCharacterCountBits(Version.getVersionForNumber(j)); if (i > -1 + (1 << k)) { throw new WriterException((new StringBuilder()).append(i).append("is bigger than").append(-1 + (1 << k)).toString()); } else { bitarray.appendBits(i, k); return; } }
static void a(String s, Mode mode, BitArray bitarray, String s1) { switch (b.a[mode.ordinal()]) { default: throw new WriterException((new StringBuilder()).append("Invalid mode: ").append(mode).toString()); case 1: // '\001' a(((CharSequence) (s)), bitarray); return; case 2: // '\002' b(s, bitarray); return; case 3: // '\003' a(s, bitarray, s1); return; case 4: // '\004' a(s, bitarray); break; } }
private static int a(int i, Version version, Mode mode) { return (7 + (i + (4 + mode.getCharacterCountBits(version)))) / 8; }
static void a(Mode mode, BitArray bitarray) { bitarray.appendBits(mode.getBits(), 4); }