- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for SmbFilenameFilter (0.12 sec)
-
src/main/java/jcifs/smb1/smb1/SmbFilenameFilter.java
package jcifs.smb1.smb1; /** * Filter interface for SMB filename filtering. * This interface allows selective filtering of filenames * when listing directory contents in SMB shares. */ public interface SmbFilenameFilter { /** * Tests whether the specified filename should be included in a file list. * * @param dir the directory containing the file * @param name the name of the file
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.4K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFilenameFilter.java
package jcifs.smb; /** * Filter interface for SMB filename filtering. * * This interface allows selective filtering of filenames * when listing directory contents in SMB shares. */ public interface SmbFilenameFilter { /** * Tests whether the specified filename should be included in a file list. * * @param dir the directory containing the file * @param name the name of the file
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFilenameFilterTest.java
*/ @Test @DisplayName("anonymous class implementation behaves correctly") void anonymousClassImplementation() throws Exception { SmbFilenameFilter filter = new SmbFilenameFilter() { @Override public boolean accept(SmbFile dir, String name) throws SmbException { return name != null && name.length() > 3; } };
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbFilenameFilterTest.java
SmbFile dir = Mockito.mock(SmbFile.class); SmbFilenameFilter filter = (d, n) -> n.equalsIgnoreCase("hello.txt"); assertTrue(filter.accept(dir, "Hello.TXT")); } @Test void acceptReturnsFalseWhenNameDoesNotMatch() throws Exception { SmbFile dir = Mockito.mock(SmbFile.class); SmbFilenameFilter filter = (d, n) -> n.equalsIgnoreCase("hello.txt");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.6K bytes - Viewed (0)