Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for setUseUnicode (0.79 sec)

  1. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

                testBlock.setUseUnicode(true);
                byte[] buffer = Strings.getUNIBytes("Test\0");
    
                String result = testBlock.readString(buffer, 0);
    
                assertEquals("Test", result);
            }
    
            @Test
            @DisplayName("Test read string without Unicode")
            void testReadStringNonUnicode() {
                testBlock.setUseUnicode(false);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java

            byte[] buffer = new byte[100];
    
            spyResponse.readDataWireFormat(buffer, 0, buffer.length);
    
            // Verify setUseUnicode was called with false
            verify(spyResponse).setUseUnicode(false);
        }
    
        @Test
        @DisplayName("Test readDataWireFormat with maximum length share name")
        void testReadDataWireFormatMaxLengthShareName() throws Exception {
            setConverter(response, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/com/SmbComNegotiateResponse.java

            if (!(request instanceof final ServerMessageBlock req)) {
                return;
            }
    
            req.addFlags2(this.negotiatedFlags2);
            req.setUseUnicode(req.isForceUnicode() || this.useUnicode);
            if (req.isUseUnicode()) {
                req.addFlags2(SmbConstants.FLAGS2_UNICODE);
            }
    
            if (req instanceof SmbComTransaction) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

            dst[start + ANDX_RESERVED_OFFSET] = (byte) 0x00;
            this.andxOffset = dstIndex - this.headerStart;
            SMBUtil.writeInt2(this.andxOffset, dst, start + ANDX_OFFSET_OFFSET);
    
            this.andx.setUseUnicode(this.isUseUnicode());
            if (this.andx instanceof AndXServerMessageBlock) {
    
                /*
                 * A word about communicating header info to andx smbs
                 *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java

                }
            };
    
            byte[] buffer = new byte[1024];
            int length = testBlock.writeAndXWireFormat(buffer, 0);
    
            assertTrue(length > 0);
            verify(mockAndxCommand).setUseUnicode(anyBoolean());
            assertEquals(testBlock.uid, mockAndxCommand.uid);
        }
    
        @Test
        @DisplayName("Test readAndXWireFormat with non-AndX andx command")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/net/NetShareEnumResponse.java

        }
    
        @Override
        protected int readDataWireFormat(final byte[] buffer, int bufferIndex, final int len) {
            final int start = bufferIndex;
            SmbShareInfo e;
    
            setUseUnicode(false);
    
            final SmbShareInfo[] results = new SmbShareInfo[getNumEntries()];
            for (int i = 0; i < getNumEntries(); i++) {
                results[i] = e = new SmbShareInfo();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

            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;
        }
    
        /**
         * @return the received
         */
        @Override
        public final boolean isReceived() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 38.9K bytes
    - Viewed (0)
Back to top