• Post Reply Bookmark Topic Watch Topic
  • New Topic

Confused about method getPathMatcher of class FileSystem  RSS feed

 
Dana Ucaed
Ranch Hand
Posts: 405
6
Netbeans IDE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am very confused about:


because it is abstract.

I think that in the documentation they don't write the word abstract because you can write FileSystem.getPathMatcher(String x).

What is the explication?

Thanks,

Dana
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37395
531
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dana,
It's abstract because the FileSystem class itself is abstract. That just means that someone down the chain needs to implement it. As an example, UnixFileSystem provides an implementation. As does any other class you get returned and use in a FileSystem variable.
 
Dana Ucaed
Ranch Hand
Posts: 405
6
Netbeans IDE Oracle Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jeanne.

I needed one explication and you gave me.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!