- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 44 for FileEntry (0.05 sec)
-
src/main/java/jcifs/smb1/smb1/FileEntry.java
package jcifs.smb1.smb1; /** * Represents a file or directory entry in SMB1 protocol. */ public interface FileEntry { /** * Gets the name of the file or directory. * * @return the file or directory name */ String getName(); /** * Gets the type of the entry. * * @return the entry type */ int getType(); /** * Gets the file attributes. *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 881 bytes - Viewed (0) -
src/main/java/jcifs/smb/FileEntry.java
*/ package jcifs.smb; /** * Interface representing a file entry in an SMB directory listing. * Provides access to file metadata and attributes. * */ public interface FileEntry { /** * Gets the file name. * * @return the file name */ String getName(); /** * Gets the file type. * * @return the file type */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcDfsRootEnumTest.java
dfsRootEnum.info.e = dfsEnumArray; // When FileEntry[] entries = dfsRootEnum.getEntries(); // Then assertNotNull(entries, "The returned entries array should not be null."); assertEquals(2, entries.length, "The number of entries should be correct."); // The getEntries method returns FileEntry objects. We can check their names.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java
* @return the results */ public final FileEntry[] getResults() { return this.results; } /** * Sets the file entry results for the response * @param results * the results to set */ protected final void setResults(final FileEntry[] results) { this.results = results; } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 12.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java
f.set(target, value); } catch (Exception e) { throw new RuntimeException(e); } } // Simple FileEntry stub for tests private static final class FE implements FileEntry { private final String name; FE(String name) { this.name = name; } @Override public String getName() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java
FileEntry initial = entry("first"); FileEntry[] page1 = new FileEntry[] { entry("."), entry(".."), entry("rejected"), entry(acceptedName) }; TestIterator it = TestIterator.create(tree, parent, "*", nameFilter, 0, initial, List.of(new FileEntry[][] { page1 })); // Act assertTrue(it.hasNext()); FileEntry e1 = it.next(); assertTrue(it.hasNext());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/FileEntryTest.java
void nullName() { FileEntry mock = mock(FileEntry.class); when(mock.getName()).thenReturn(null); assertNull(mock.getName()); } @Test @DisplayName("Negative length is allowed via mock") void negativeLength() { FileEntry mock = mock(FileEntry.class); when(mock.length()).thenReturn(-10L);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java
} @Test @DisplayName("Multiple iterations") void multipleIterations() { // Setup for three items FileEntry entry1 = mock(FileEntry.class); FileEntry entry2 = mock(FileEntry.class); FileEntry entry3 = mock(FileEntry.class); // Constructor gets entry1, first next() returns it and gets entry2, // second next() returns entry2 and gets entry3,
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.6K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcShareEnumTest.java
infoField.set(msrpcShareEnum, shareInfoCtr1); // Test getEntries method FileEntry[] entries = msrpcShareEnum.getEntries(); assertNotNull(entries); assertEquals(2, entries.length); // Verify the first entry FileEntry entry1 = entries[0]; assertNotNull(entry1); assertEquals("Share1", entry1.getName());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/FileEntryTest.java
Arguments.of((IntGetter) FileEntry::getType, Integer.MAX_VALUE, "max type"), Arguments.of((IntGetter) FileEntry::getAttributes, 0, "no attributes"), Arguments.of((IntGetter) FileEntry::getAttributes, 0xFFFF, "many attributes"), Arguments.of((IntGetter) FileEntry::getFileIndex, -5, "negative index"),
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10K bytes - Viewed (0)