Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 34 for useUnicode (0.73 sec)

  1. src/test/java/jcifs/config/PropertyConfigurationTest.java

        @DisplayName("Should parse boolean properties correctly")
        void testBooleanProperties() throws CIFSException {
            // Given
            Properties props = new Properties();
            props.setProperty("jcifs.smb.client.useUnicode", "true");
            props.setProperty("jcifs.smb.client.disablePlainTextPasswords", "false");
            props.setProperty("jcifs.util.loglevel", "1");
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

         * @return the useUnicode
         */
        public final boolean isUseUnicode() {
            return this.useUnicode;
        }
    
        /**
         * Sets whether to use Unicode encoding for this message
         * @param useUnicode
         *            the useUnicode to set
         */
        public final void setUseUnicode(final boolean useUnicode) {
            this.useUnicode = useUnicode;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbTransport.java

        void send(final ServerMessageBlock request, final ServerMessageBlock response) throws SmbException {
    
            connect(); /* must negotiate before we can test flags2, useUnicode, etc */
    
            request.flags2 |= flags2;
            request.useUnicode = useUnicode;
            request.response = response; /* needed by sign */
            if (request.digest == null) {
                request.digest = digest; /* for sign called in encode */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbConstants.java

        /** Whether to use Unicode strings */
        boolean USE_UNICODE = Config.getBoolean("jcifs.smb1.smb.client.useUnicode", true);
        /** Whether to force Unicode usage */
        boolean FORCE_UNICODE = Config.getBoolean("jcifs.smb1.smb.client.useUnicode", false);
        /** Whether to use NT status codes */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/config/BaseConfiguration.java

        protected SecureRandom random;
        /** Whether to use command batching for improved performance */
        protected boolean useBatching = false;
        /** Whether to use Unicode encoding for strings */
        protected boolean useUnicode = true;
        /** Force use of Unicode encoding regardless of negotiation */
        protected boolean forceUnicode = false;
        /** Whether SMB signing is preferred but not required */
        protected boolean signingPreferred = false;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 36.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SmbComRename.java

            final int start = dstIndex;
    
            dst[dstIndex] = (byte) 0x04;
            dstIndex++;
            dstIndex += writeString(oldFileName, dst, dstIndex);
            dst[dstIndex++] = (byte) 0x04;
            if (useUnicode) {
                dst[dstIndex++] = (byte) '\0';
            }
            dstIndex += writeString(newFileName, dst, dstIndex);
    
            return dstIndex - start;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/SmbComDeleteDirectoryTest.java

        void testWriteBytesWireFormat() {
            // Assuming path is ASCII and does not use unicode
            String dirName = "\testDir";
            SmbComDeleteDirectory sdd = new SmbComDeleteDirectory(dirName);
            sdd.useUnicode = false;
            // format byte + path + null terminator
            byte[] expected = new byte[1 + dirName.length() + 1];
            expected[0] = 0x04; // buffer format
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbComOpenAndX.java

            }
    
            return dstIndex - start;
        }
    
        @Override
        int writeBytesWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
    
            if (useUnicode) {
                dst[dstIndex] = (byte) '\0';
                dstIndex++;
            }
            dstIndex += writeString(path, dst, dstIndex);
    
            return dstIndex - start;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbComTreeConnectAndXResponse.java

                return 0;
            }
            bufferIndex += len + 1;
            // win98 observed not returning nativeFileSystem
            /* Problems here with iSeries returning ASCII even though useUnicode = true
             * Fortunately we don't really need nativeFileSystem for anything.
            if( byteCount > bufferIndex - start ) {
                nativeFileSystem = readString( buffer, bufferIndex );
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/config/PropertyConfiguration.java

            value = props.getProperty("jcifs.encoding");
            if (value != null) {
                this.oemEncoding = value;
            }
    
            value = props.getProperty("jcifs.smb.client.useUnicode");
            if (value != null) {
                this.useUnicode = Boolean.parseBoolean(value);
            }
    
            value = props.getProperty("jcifs.smb.client.useBatching");
            if (value != null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 13.3K bytes
    - Viewed (0)
Back to top