src/share/classes/java/nio/file/FileSystem.java

Print this page




 330      *   <td>Matches file names ending with {@code .java} or {@code .class}</td>
 331      * </tr>
 332      * <tr>
 333      *   <td>{@code foo.?}</td>
 334      *   <td>Matches file names starting with {@code foo.} and a single
 335      *   character extension</td>
 336      * </tr>
 337      * <tr>
 338      *   <td><tt>&#47;home&#47;*&#47;*</tt>
 339      *   <td>Matches <tt>&#47;home&#47;gus&#47;data</tt> on UNIX platforms</td>
 340      * </tr>
 341      * <tr>
 342      *   <td><tt>&#47;home&#47;**</tt>
 343      *   <td>Matches <tt>&#47;home&#47;gus</tt> and
 344      *   <tt>&#47;home&#47;gus&#47;data</tt> on UNIX platforms</td>
 345      * </tr>
 346      * <tr>
 347      *   <td><tt>C:&#92;&#92;*</tt>
 348      *   <td>Matches <tt>C:&#92;foo</tt> and <tt>C:&#92;bar</tt> on the Windows
 349      *   platform (note that the backslash is escaped; as a string literal in the
 350      *   Java Language the pattern would be <tt>"C:&#92;&#92;&#92;&#92*"</tt>) </td>
 351      * </tr>
 352      *
 353      * </table>
 354      * </blockquote>
 355      *
 356      * <p> The following rules are used to interpret glob patterns:
 357      *
 358      * <p> <ul>
 359      *   <li><p> The {@code *} character matches zero or more {@link Character
 360      *   characters} of a {@link Path#getName(int) name} component without
 361      *   crossing directory boundaries. </p></li>
 362      *
 363      *   <li><p> The {@code **} characters matches zero or more {@link Character
 364      *   characters} crossing directory boundaries. </p></li>
 365      *
 366      *   <li><p> The {@code ?} character matches exactly one character of a
 367      *   name component.</p></li>
 368      *
 369      *   <li><p> The backslash character ({@code \}) is used to escape characters
 370      *   that would otherwise be interpreted as special characters. The expression




 330      *   <td>Matches file names ending with {@code .java} or {@code .class}</td>
 331      * </tr>
 332      * <tr>
 333      *   <td>{@code foo.?}</td>
 334      *   <td>Matches file names starting with {@code foo.} and a single
 335      *   character extension</td>
 336      * </tr>
 337      * <tr>
 338      *   <td><tt>&#47;home&#47;*&#47;*</tt>
 339      *   <td>Matches <tt>&#47;home&#47;gus&#47;data</tt> on UNIX platforms</td>
 340      * </tr>
 341      * <tr>
 342      *   <td><tt>&#47;home&#47;**</tt>
 343      *   <td>Matches <tt>&#47;home&#47;gus</tt> and
 344      *   <tt>&#47;home&#47;gus&#47;data</tt> on UNIX platforms</td>
 345      * </tr>
 346      * <tr>
 347      *   <td><tt>C:&#92;&#92;*</tt>
 348      *   <td>Matches <tt>C:&#92;foo</tt> and <tt>C:&#92;bar</tt> on the Windows
 349      *   platform (note that the backslash is escaped; as a string literal in the
 350      *   Java Language the pattern would be <tt>"C:&#92;&#92;&#92;&#92;*"</tt>) </td>
 351      * </tr>
 352      *
 353      * </table>
 354      * </blockquote>
 355      *
 356      * <p> The following rules are used to interpret glob patterns:
 357      *
 358      * <p> <ul>
 359      *   <li><p> The {@code *} character matches zero or more {@link Character
 360      *   characters} of a {@link Path#getName(int) name} component without
 361      *   crossing directory boundaries. </p></li>
 362      *
 363      *   <li><p> The {@code **} characters matches zero or more {@link Character
 364      *   characters} crossing directory boundaries. </p></li>
 365      *
 366      *   <li><p> The {@code ?} character matches exactly one character of a
 367      *   name component.</p></li>
 368      *
 369      *   <li><p> The backslash character ({@code \}) is used to escape characters
 370      *   that would otherwise be interpreted as special characters. The expression