Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for fileIndex (0.09 sec)

  1. src/test/java/jcifs/smb/FileEntryTest.java

            private final long lastModified;
            private final long lastAccess;
            private final long length;
            private final int fileIndex;
    
            TestFileEntry(String name, int type, int attributes, long createTime, long lastModified, long lastAccess, long length,
                    int fileIndex) {
                this.name = name;
                this.type = type;
                this.attributes = attributes;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java

            // Set maximum values
            SMBUtil.writeInt4(Integer.MAX_VALUE, buffer, 0); // nextEntryOffset
            SMBUtil.writeInt4(Integer.MAX_VALUE, buffer, 4); // fileIndex
            // For time values, use a reasonable max time that won't overflow
            long maxTime = System.currentTimeMillis() + 1000000000000L;
            SMBUtil.writeTime(maxTime, buffer, 8); // creationTime
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/fscc/FileBothDirectoryInfo.java

            return this.filename;
        }
    
        @Override
        public int getType() {
            return SmbConstants.TYPE_FILESYSTEM;
        }
    
        /**
         * @return the fileIndex
         */
        @Override
        public int getFileIndex() {
            return this.fileIndex;
        }
    
        /**
         * Gets the filename.
         *
         * @return the filename
         */
        public String getFilename() {
            return this.filename;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequest.java

        }
    
        /**
         * Sets the file index from which to start the directory enumeration
         *
         * @param fileIndex
         *            the fileIndex to set
         */
        public void setFileIndex(final int fileIndex) {
            this.fileIndex = fileIndex;
        }
    
        /**
         * Sets the file name pattern for filtering directory results
         *
         * @param fileName
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/Trans2FindFirst2Response.java

                return endOfFile;
            }
    
            @Override
            public String toString() {
                return ("SmbFindFileBothDirectoryInfo[" + "nextEntryOffset=" + nextEntryOffset + ",fileIndex=" + fileIndex + ",creationTime="
                        + new Date(creationTime) + ",lastAccessTime=" + new Date(lastAccessTime) + ",lastWriteTime=" + new Date(lastWriteTime)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/Trans2FindFirst2ResponseTest.java

            info.fileNameLength = 8;
            info.eaSize = 0;
            info.shortNameLength = 8;
    
            String expected = "SmbFindFileBothDirectoryInfo[" + "nextEntryOffset=" + info.nextEntryOffset + ",fileIndex=" + info.fileIndex
                    + ",creationTime=" + new Date(info.creationTime) + ",lastAccessTime=" + new Date(info.lastAccessTime) + ",lastWriteTime="
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequestTest.java

            request = new Smb2QueryDirectoryRequest(mockConfig);
            int fileIndex = 0x12345678;
    
            request.setFileIndex(fileIndex);
    
            // Verify by writing to buffer and checking the fileIndex position
            byte[] buffer = new byte[1024];
            request.writeBytesWireFormat(buffer, Smb2Constants.SMB2_HEADER_LENGTH);
    
            // FileIndex is at offset 4 in the request structure
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/SmbResourceTest.java

            }
    
            @Test
            @DisplayName("fileIndex should return valid index")
            void testFileIndex() throws CIFSException {
                // Given
                long expectedIndex = 12345L;
                when(mockResource.fileIndex()).thenReturn(expectedIndex);
    
                // When
                long index = mockResource.fileIndex();
    
                // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java

            // Write minimal FileBothDirectoryInfo at dataOffset
            // NextEntryOffset (0 = last entry)
            SMBUtil.writeInt4(0, buffer, dataOffset);
            // FileIndex
            SMBUtil.writeInt4(0, buffer, dataOffset + 4);
            // CreationTime
            SMBUtil.writeInt8(0, buffer, dataOffset + 8);
            // LastAccessTime
            SMBUtil.writeInt8(0, buffer, dataOffset + 16);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/SmbResource.java

        /**
         * Get the file index
         *
         * @return server side file index, 0 if unavailable
         * @throws CIFSException if an error occurs accessing the resource
         */
        long fileIndex() throws CIFSException;
    
        /**
         * Return the attributes of this file. Attributes are represented as a
         * bitset that must be masked with <code>ATTR_*</code> constants to determine
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 28K bytes
    - Viewed (1)
Back to top