Lines Matching refs:pattern

72  * <li>   java.util.logging.FileHandler.pattern
73 * specifies a pattern for generating the output file name. See
81 * A pattern consists of a string that includes the following special
95 * Thus for example a pattern of "%t/java%g.log" with a count of 2
125 private String pattern;
187 pattern = manager.getStringProperty(cname + ".pattern", "%h/java%u.log");
220 * @exception NullPointerException if pattern property is an empty String.
232 * properties (or their default values) except that the given pattern
233 * argument is used as the filename pattern, the file limit is
239 * @param pattern the name of the output file
243 * @exception IllegalArgumentException if pattern is an empty string
245 public FileHandler(String pattern) throws IOException, SecurityException {
246 if (pattern.length() < 1 ) {
251 this.pattern = pattern;
262 * properties (or their default values) except that the given pattern
263 * argument is used as the filename pattern, the file limit is
270 * @param pattern the name of the output file
275 * @exception IllegalArgumentException if pattern is an empty string
277 public FileHandler(String pattern, boolean append) throws IOException, SecurityException {
278 if (pattern.length() < 1 ) {
283 this.pattern = pattern;
297 * properties (or their default values) except that the given pattern
298 * argument is used as the filename pattern, the file limit is
304 * @param pattern the pattern for naming the output file
311 * @exception IllegalArgumentException if pattern is an empty string
313 public FileHandler(String pattern, int limit, int count)
315 if (limit < 0 || count < 1 || pattern.length() < 1) {
320 this.pattern = pattern;
333 * properties (or their default values) except that the given pattern
334 * argument is used as the filename pattern, the file limit is
341 * @param pattern the pattern for naming the output file
349 * @exception IllegalArgumentException if pattern is an empty string
352 public FileHandler(String pattern, int limit, int count, boolean append)
354 if (limit < 0 || count < 1 || pattern.length() < 1) {
359 this.pattern = pattern;
389 throw new IOException("Couldn't get lock for " + pattern);
392 lockFileName = generate(pattern, 0, unique).toString() + ".lck";
436 files[i] = generate(pattern, i, unique);
462 // Generate a filename from a pattern.
463 private File generate(String pattern, int generation, int unique) throws IOException {
469 while (ix < pattern.length()) {
470 char ch = pattern.charAt(ix);
473 if (ix < pattern.length()) {
474 ch2 = Character.toLowerCase(pattern.charAt(ix));