- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for SmbFilenameFilter (0.28 seconds)
-
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 fileCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.4K bytes - Click Count (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 fileCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.4K bytes - Click Count (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; } };Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.3K bytes - Click Count (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");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 1.6K bytes - Click Count (0)