-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixing typo in IMqttClient.java Signed-off-by: James Sutton <james.sutton@uk.ibm.com> * Issue #213 Signed-off-by: James Sutton <james.sutton@uk.ibm.com> * Issue #249: Null Check for reconnect timer & Connect options Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
- Loading branch information
Showing
4 changed files
with
57 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...nt.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/persist/PersistanceFileFilter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.eclipse.paho.client.mqttv3.persist; | ||
|
||
import java.io.File; | ||
import java.io.FileFilter; | ||
|
||
public class PersistanceFileFilter implements FileFilter{ | ||
|
||
private final String fileExtension; | ||
|
||
public PersistanceFileFilter(String fileExtension){ | ||
this.fileExtension = fileExtension; | ||
} | ||
|
||
public boolean accept(File pathname) { | ||
return pathname.getName().endsWith(fileExtension); | ||
} | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
...qttv3/src/main/java/org/eclipse/paho/client/mqttv3/persist/PersistanceFileNameFilter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.eclipse.paho.client.mqttv3.persist; | ||
|
||
import java.io.File; | ||
import java.io.FilenameFilter; | ||
|
||
public class PersistanceFileNameFilter implements FilenameFilter{ | ||
|
||
private final String fileExtension; | ||
|
||
public PersistanceFileNameFilter(String fileExtension){ | ||
this.fileExtension = fileExtension; | ||
} | ||
|
||
public boolean accept(File dir, String name) { | ||
return name.endsWith(fileExtension); | ||
} | ||
|
||
} |