de.esprit.appsuite.nio.watcher

## Class PathFilterWrapper

- java.lang.Object
- - de.esprit.appsuite.nio.watcher.PathFilterWrapper

- All Implemented Interfaces:
    java.nio.file.DirectoryStream.Filter<java.nio.file.Path>

      public class PathFilterWrapper
      extends java.lang.Object
      implements java.nio.file.DirectoryStream.Filter<java.nio.file.Path>

  Note that this class is necessary because a DirectoryStream.Filter is not serializable. Therefore we use a special PathFilter instance which can be serialized.
  Author:
    Rainer Buesch

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PathFilterWrapper()`
    `PathFilterWrapper(PathFilter filter)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `accept(java.nio.file.Path entry)`
    `PathFilter` | `getPathFilter()`
    `void` | `setPathFilter(PathFilter filter)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PathFilterWrapper

          public PathFilterWrapper()

    - #### PathFilterWrapper

          public PathFilterWrapper(PathFilter filter)

  - ### Method Detail

    - #### accept

          public boolean accept(java.nio.file.Path entry)
                         throws java.io.IOException

      Specified by:
        `accept` in interface `java.nio.file.DirectoryStream.Filter<java.nio.file.Path>`
      Throws:
        `java.io.IOException`

    - #### setPathFilter

          public void setPathFilter(PathFilter filter)

    - #### getPathFilter

          public PathFilter getPathFilter()

Copyright © 2014 EsprIT-Systems. All Rights Reserved.