Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for useUnicode (0.04 sec)

  1. src/test/java/jcifs/SmbConnectionTest.java

        public void testBatchLimitForDifferentCommands() throws CIFSException {
            Properties props = new Properties();
            props.setProperty("jcifs.smb.client.useBatching", "true");
            props.setProperty("jcifs.smb.client.useUnicode", "true");
    
            PropertyConfiguration config = new PropertyConfiguration(props);
    
            // Test various command batch limits
            int readAndXClose = config.getBatchLimit("ReadAndX.Close");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/Trans2FindFirst2ResponseTest.java

            response.useUnicode = true;
            String expected = "test";
            byte[] src = expected.getBytes("UTF-16LE");
            String result = response.readString(src, 0, src.length);
            assertEquals(expected, result);
        }
    
        @Test
        void testReadString_Oem() {
            response.useUnicode = false;
            String expected = "test";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbComOpenAndXTest.java

         * Test writeBytesWireFormat method with Unicode.
         */
        @Test
        void testWriteBytesWireFormat_Unicode() {
            smbComOpenAndX = new SmbComOpenAndX(fileName, access, 0, andx);
            smbComOpenAndX.useUnicode = true;
            // For Unicode: 1 byte (initial null in writeBytesWireFormat)
            // + potential 1 byte alignment (in writeString) + fileName.length() * 2 + 2 bytes (terminating nulls)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndXResponse.java

            nativeLanMan = readString(buffer, bufferIndex, start + byteCount, 255, useUnicode);
            bufferIndex += stringWireLength(nativeLanMan, bufferIndex);
            if (!extendedSecurity) {
                primaryDomain = readString(buffer, bufferIndex, start + byteCount, 255, useUnicode);
                bufferIndex += stringWireLength(primaryDomain, bufferIndex);
            }
    
            return bufferIndex - start;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndX.java

                        }
                    } else if (DISABLE_PLAIN_TEXT_PASSWORDS) {
                        throw new RuntimeException("Plain text passwords are disabled");
                    } else if (useUnicode) {
                        // plain text
                        final String password = auth.getPassword();
                        lmHash = new byte[0];
                        ntHash = new byte[(password.length() + 1) * 2];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  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. README.md

    jcifs.smb.client.signingEnforced=false
    jcifs.smb.client.encryptionEnforced=false
    jcifs.smb.client.disablePlainTextPasswords=true
    
    # Performance
    jcifs.smb.client.useBatching=true
    jcifs.smb.client.useUnicode=true
    jcifs.smb.client.maxMpxCount=10
    ```
    
    ### Usage with Properties
    
    ```java
    Properties props = new Properties();
    props.setProperty("jcifs.smb.client.domain", "MYDOMAIN");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 09:24:52 UTC 2025
    - 6.2K bytes
    - Viewed (0)
Back to top