- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 34 for useUnicode (0.05 seconds)
-
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; } @OverrideCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 2.4K bytes - Click Count (0) -
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 );Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 2.9K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/NetShareEnumResponse.java
return bufferIndex - start; } @Override int readDataWireFormat(final byte[] buffer, int bufferIndex, final int len) { final int start = bufferIndex; SmbShareInfo e; useUnicode = false; results = new SmbShareInfo[numEntries]; for (int i = 0; i < numEntries; i++) { results[i] = e = new SmbShareInfo(); e.netName = readString(buffer, bufferIndex, 13, false);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 3.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/net/TestSmbComTransactionResponseReader.java
@BeforeEach public void setup() throws Exception { this.cfg = new BaseConfiguration(true); } /** * Sub-class of {@link BaseConfiguration} that forces {@code useUnicode()} * to return {@code false}. This mimics an ASCII only client */ private static class OffUnicodeConfig extends BaseConfiguration { public OffUnicodeConfig() throws Exception { super(true);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.2K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/com/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. // However, we'll try to read it safely for compatibility if (this.byteCount > bufferIndex - start) { try {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 5.1K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbComNTCreateAndX.java
return dstIndex - start; } @Override int writeBytesWireFormat(final byte[] dst, final int dstIndex) { int n = writeString(path, dst, dstIndex); writeInt2(useUnicode ? path.length() * 2 : n, dst, namelen_index); return n; } @Override int readParameterWordsWireFormat(final byte[] buffer, final int bufferIndex) { return 0; }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 6.5K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/Trans2FindFirst2Response.java
subCommand = SmbComTransaction.TRANS2_FIND_FIRST2; } String readString(final byte[] src, final int srcIndex, int len) { String str = null; try { if (useUnicode) { // should Unicode alignment be corrected for here? str = new String(src, srcIndex, len, UNI_ENCODING); } else {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 8.6K bytes - Click Count (0) -
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;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 36.5K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java
smb.useUnicode = false; byte[] buffer = new byte[6]; System.arraycopy("short".getBytes(), 0, buffer, 0, 5); buffer[5] = 0; // Null terminator String result = smb.readString(buffer, 0, 5, false); assertEquals("short", result); } @Test void testReadStringWithMaxLengthExceeded() { smb.useUnicode = false;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) -
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");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.1K bytes - Click Count (0)