Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for FileInformation (0.28 sec)

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

     * Defines common functionality for various SMB2/SMB3 file information classes used in
     * query and set file information operations, with constants for information levels.
     *
     * @author mbechler
     */
    public interface FileInformation extends Decodable, Encodable {
    
        // information levels
    
        /**
         * File end-of-file information class constant.
         */
        byte FILE_ENDOFFILE_INFO = 20;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/fscc/FileInformationTest.java

        void testConstantsAreUnique() {
            byte[] constants = { FileInformation.FILE_ENDOFFILE_INFO, FileInformation.FILE_BASIC_INFO, FileInformation.FILE_STANDARD_INFO,
                    FileInformation.FILE_INTERNAL_INFO, FileInformation.FILE_RENAME_INFO };
    
            // Check all constants are unique
            for (int i = 0; i < constants.length; i++) {
                for (int j = i + 1; j < constants.length; j++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java

            // Test valid information levels
            assertEquals(0x0101, Trans2QueryPathInformation.mapInformationLevel(FileInformation.FILE_BASIC_INFO));
            assertEquals(0x0102, Trans2QueryPathInformation.mapInformationLevel(FileInformation.FILE_STANDARD_INFO));
            assertEquals(0x0104, Trans2QueryPathInformation.mapInformationLevel(FileInformation.FILE_ENDOFFILE_INFO));
        }
    
        @Test
        void testMapInformationLevelWithInvalidLevel() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformation.java

         * @return
         */
        static long mapInformationLevel(final int il) {
            switch (il) {
            case FileInformation.FILE_BASIC_INFO:
                return 0x0101;
            case FileInformation.FILE_STANDARD_INFO:
                return 0x0102;
            case FileInformation.FILE_ENDOFFILE_INFO:
                return 0x0104;
            }
            throw new IllegalArgumentException("Unsupported information level " + il);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/fscc/FileRenameInformation2.java

            return 20 + 2 * this.fileName.length();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.fscc.FileInformation#getFileInformationLevel()
         */
        @Override
        public byte getFileInformationLevel() {
            return FileInformation.FILE_RENAME_INFO;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/fscc/FileEndOfFileInformation.java

     *
     * @author mbechler
     */
    public class FileEndOfFileInformation implements FileInformation, Encodable {
    
        private long endOfFile;
    
        /**
         * Default constructor for decoding.
         */
        public FileEndOfFileInformation() {
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.fscc.FileInformation#getFileInformationLevel()
         */
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponseTest.java

            byte[] buffer = new byte[100];
    
            int result = response.readParametersWireFormat(buffer, 0, buffer.length);
    
            assertEquals(2, result);
        }
    
        @ParameterizedTest
        @ValueSource(bytes = { FileInformation.FILE_BASIC_INFO, FileInformation.FILE_STANDARD_INFO, FileInformation.FILE_INTERNAL_INFO })
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/trans2/Trans2SetFileInformation.java

        private final int fid;
        private final FileInformation info;
    
        /**
         * Constructs a Trans2SetFileInformation request with file information object.
         *
         * @param config the SMB configuration
         * @param fid the file identifier
         * @param info the file information to set
         */
        public Trans2SetFileInformation(final Configuration config, final int fid, final FileInformation info) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/fscc/FileInternalInfo.java

     *
     * @author mbechler
     */
    public class FileInternalInfo implements FileInformation {
    
        private long indexNumber;
    
        /**
         * Default constructor for decoding file internal information.
         */
        public FileInternalInfo() {
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.fscc.FileInformation#getFileInformationLevel()
         */
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponse.java

            final int start = bufferIndex;
            final FileInformation inf = createFileInformation();
            if (inf != null) {
                bufferIndex += inf.decode(buffer, bufferIndex, getDataCount());
                this.info = inf;
            }
            return bufferIndex - start;
        }
    
        private FileInformation createFileInformation() {
            FileInformation inf;
            switch (this.informationLevel) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.7K bytes
    - Viewed (0)
Back to top