Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 17 for getFileInformationLevel (0.34 seconds)

  1. src/main/java/jcifs/internal/fscc/FileInternalInfo.java

         */
        public FileInternalInfo() {
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.fscc.FileInformation#getFileInformationLevel()
         */
        @Override
        public byte getFileInformationLevel() {
            return FILE_INTERNAL_INFO;
        }
    
        /**
         * Gets the file index number.
         *
         * @return the index number assigned by the file system
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  2. src/main/java/jcifs/internal/fscc/FileEndOfFileInformation.java

         */
        public FileEndOfFileInformation() {
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.fscc.FileInformation#getFileInformationLevel()
         */
        @Override
        public byte getFileInformationLevel() {
            return FileInformation.FILE_ENDOFFILE_INFO;
        }
    
        /**
         * Constructs file end of file information.
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/fscc/FileRenameInformation2.java

        public int size() {
            return 20 + 2 * this.fileName.length();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.fscc.FileInformation#getFileInformationLevel()
         */
        @Override
        public byte getFileInformationLevel() {
            return FileInformation.FILE_RENAME_INFO;
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.5K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/fscc/FileInformationTest.java

            // Define behavior
            when(mockFileInfo.getFileInformationLevel()).thenReturn(FileInformation.FILE_BASIC_INFO);
    
            // Test interface method
            byte level = mockFileInfo.getFileInformationLevel();
            assertEquals(FileInformation.FILE_BASIC_INFO, level);
    
            // Verify interaction
            verify(mockFileInfo).getFileInformationLevel();
        }
    
        /**
         * Test FileInformation as Decodable
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/fscc/FileBasicInfo.java

            this.changeTime = change;
            this.attributes = attributes;
    
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.fscc.FileInformation#getFileInformationLevel()
         */
        @Override
        public byte getFileInformationLevel() {
            return FileInformation.FILE_BASIC_INFO;
        }
    
        @Override
        public int getAttributes() {
            return this.attributes;
        }
    
        @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java

            when(mockBasicFileInfo.getLastAccessTime()).thenReturn(TEST_LAST_ACCESS_TIME);
            when(mockBasicFileInfo.getSize()).thenReturn(1024L);
            when(mockBasicFileInfo.getFileInformationLevel()).thenReturn(FileInformation.FILE_BASIC_INFO);
    
            // When & Then
            assertEquals(TEST_ATTRIBUTES, mockBasicFileInfo.getAttributes());
            assertEquals(TEST_CREATE_TIME, mockBasicFileInfo.getCreateTime());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13K bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/fscc/FileInformation.java

         */
        byte FILE_RENAME_INFO = 10;
    
        /**
         * Gets the file information level/class for this file information object.
         *
         * @return the file information class
         */
        byte getFileInformationLevel();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java

            assertTrue(info.toString().contains("endOfFile=" + endOfFile));
        }
    
        @Test
        @DisplayName("Test getFileInformationLevel returns correct value")
        void testGetFileInformationLevel() {
            assertEquals(FileInformation.FILE_ENDOFFILE_INFO, fileInfo.getFileInformationLevel());
    
            // Test with parameterized constructor
            FileEndOfFileInformation info = new FileEndOfFileInformation(5000L);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  9. src/main/java/jcifs/internal/fscc/FileStandardInfo.java

        private boolean directory;
    
        /**
         * Default constructor for decoding file standard information.
         */
        public FileStandardInfo() {
        }
    
        @Override
        public byte getFileInformationLevel() {
            return FILE_STANDARD_INFO;
        }
    
        @Override
        public int getAttributes() {
            return 0;
        }
    
        @Override
        public long getCreateTime() {
            return 0L;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java

            assertNotNull(info);
        }
    
        @Test
        @DisplayName("Test getFileInformationLevel returns correct value")
        void testGetFileInformationLevel() {
            assertEquals(FileInformation.FILE_RENAME_INFO, fileRenameInfo.getFileInformationLevel());
        }
    
        @Test
        @DisplayName("Test size calculation with short filename")
        void testSizeWithShortFilename() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.3K bytes
    - Click Count (0)
Back to Top