1 /* |
1 /* |
2 * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
64 * modify the array. To avoid copying the input array, ensure |
64 * modify the array. To avoid copying the input array, ensure |
65 * that {@code inputLength < input.length} or |
65 * that {@code inputLength < input.length} or |
66 * {@code input[input.length -1]} is a white space character. |
66 * {@code input[input.length -1]} is a white space character. |
67 * |
67 * |
68 * @param fac the factory which created this Scanner |
68 * @param fac the factory which created this Scanner |
69 * @param input the input, might be modified |
69 * @param buf the input, might be modified |
70 * @param inputLength the size of the input. |
|
71 * Must be positive and less than or equal to input.length. |
70 * Must be positive and less than or equal to input.length. |
72 */ |
71 */ |
73 protected Scanner(ScannerFactory fac, CharBuffer buf) { |
72 protected Scanner(ScannerFactory fac, CharBuffer buf) { |
74 this(fac, new JavaTokenizer(fac, buf)); |
73 this(fac, new JavaTokenizer(fac, buf)); |
75 } |
74 } |