-1

What's the relation between those 2 class? More in detail, how can I use the getPathMatcher method in the FileSystem class? Anybody can give me a some clarity between those 2 classes? Thanks in advance indeed.

Rollerball
  • 12,618
  • 23
  • 92
  • 161

1 Answers1

2

Well as the Javadoc says:

FileSystems provides

Factory methods for file systems.

Please provide more detail what you have done and what issues you have with getPathMatcher.

http://docs.oracle.com/javase/7/docs/api/java/nio/file/FileSystems.html

How can I use getPathMatcher? It is abstract, should I implement it?

No, you only have to implement it if you want to write your own FileSystem. If you're using an object provided by the FileSystems factory, the class of that object must have implemented all abstract methods already, otherwise no object could have been created.

Puce
  • 37,247
  • 13
  • 80
  • 152
  • How can I use getPathMatcher? It is abstract, should I implement it? – Rollerball May 01 '13 at 08:42
  • No, you only have to implement it if you want to write your own FileSystem. If you're using an object provided by the FileSystems factory, the class of that object must have implemented all abstract methods already, otherwise no object could have been created. – Puce May 01 '13 at 09:00
  • Ok now It's clear. I'll upvote as soon as I will be able to now it's locked – Rollerball May 01 '13 at 09:22
  • actually unless the answer is edited, so please do a unsignificant edit in order to be possible for me to upvote it back on – Rollerball May 01 '13 at 09:23