Lines Matching defs:limit

44         private final int limit;
47 CharacterGenerator(long seed, String csn, int limit) {
50 this.limit = limit;
66 return count < limit;
70 if (count >= limit)
85 && (count == limit - 1))
176 static void testWrite(String csn, int limit, long seed, Writer w)
186 while (count < limit) {
198 static void testStreamWrite(String csn, int limit, long seed)
202 testWrite(csn, limit, seed,
206 static void testChannelWrite(String csn, int limit, long seed)
210 testWrite(csn, limit, seed,
230 Source(String csn, long seed, int limit) {
235 this.cg = new CharacterGenerator(seed, csn, limit);
297 static void testRead(String csn, int limit, long seed, int max,
302 CharacterGenerator cg = new CharacterGenerator(seed, csn, limit);
307 while (count < limit) {
335 static void testStreamRead(String csn, int limit, long seed, int max)
339 testRead(csn, limit, seed, max,
340 new InputStreamReader(new Source(csn, seed, limit), csn));
343 static void testChannelRead(String csn, int limit, long seed, int max)
347 testRead(csn, limit, seed, max,
348 Channels.newReader(new Source(csn, seed, limit), csn));
354 static void test(String csn, int limit, long seed, int max)
360 testStreamWrite(csn, limit, seed);
361 testChannelWrite(csn, limit, seed);
362 testStreamRead(csn, limit, seed, max);
363 testChannelRead(csn, limit, seed, max);
375 int limit;
377 limit = 1 << Integer.parseInt(args[ai++]);
379 limit = LIMIT;
380 log.println("limit = " + limit);
389 test("UTF-8", limit, seed, Integer.MAX_VALUE);
390 test("US-ASCII", limit, seed, 0x7f);
391 test("ISO-8859-1", limit, seed, 0xff);