Microsoft SDK for Java

accept

This method of the WildcardExpression Class determines if a file name is valid.

Syntax

public boolean accept(java.io.File dir, String name);

Return Value

Returns true if name matches a real path; otherwise, returns false.

Parameters

dir The directory that contains the file.
name The name of the file.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.