- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 33 for getOemEncoding (0.08 seconds)
-
src/main/java/jcifs/config/DelegatingConfiguration.java
return this.delegate.getSessionLimit(); } /** * {@inheritDoc} * * @see jcifs.Configuration#getOemEncoding() */ @Override public String getOemEncoding() { return this.delegate.getOemEncoding(); } /** * {@inheritDoc} * * @see jcifs.Configuration#getLocalTimezone() */ @Override
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 24.1K bytes - Click Count (0) -
src/main/java/jcifs/ntlmssp/NtlmMessage.java
if (src != null && src.length > 0) { System.arraycopy(src, 0, dest, pos, src.length); return src.length; } return 0; } static String getOEMEncoding() { return OEM_ENCODING; } /** * Returns the raw byte representation of this message. * * @return A <code>byte[]</code> containing the raw message material.
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 5.4K bytes - Click Count (0) -
src/test/java/jcifs/config/DelegatingConfigurationTest.java
} @Test @DisplayName("String configuration methods should delegate correctly") void testStringConfigurationDelegation() { // Given when(mockDelegate.getOemEncoding()).thenReturn("UTF-8"); when(mockDelegate.getNetbiosHostname()).thenReturn("TESTHOST"); when(mockDelegate.getDefaultDomain()).thenReturn("WORKGROUP");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.7K bytes - Click Count (0) -
src/main/java/jcifs/ntlmssp/Type3Message.java
charset = getOEMEncoding(); end = true; } else { setEncryptedSessionKey(readSecurityBuffer(material, pos)); pos += 8; flags = readULong(material, pos); setFlags(flags); pos += 4; charset = (flags & NTLMSSP_NEGOTIATE_UNICODE) != 0 ? UNI_ENCODING : getOEMEncoding(); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 32.7K bytes - Click Count (0) -
src/main/java/jcifs/util/Strings.java
if (str == null) { return new byte[0]; } try { return str.getBytes(config.getOemEncoding()); } catch (final UnsupportedEncodingException e) { throw new RuntimeCIFSException("Unsupported OEM encoding " + config.getOemEncoding(), e); } } /** * Decodes a string from UTF-16LE (Unicode Little Endian) bytes. *
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 6.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationTest.java
private SmbComQueryInformation cmd; @BeforeEach void setUp() { // Configure the mock to return the OEM encoding which is required for writeString when(mockConfig.getOemEncoding()).thenReturn("windows-1252"); cmd = new SmbComQueryInformation(mockConfig, "testfile.txt"); } @Test @DisplayName("writeBytesWireFormat writes the command byte followed by the null terminated string")Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.9K bytes - Click Count (0) -
src/main/java/jcifs/Configuration.java
*/ int getSessionLimit(); /** * * Property {@code jcifs.encoding} (string, default {@code Cp850}) * * @return OEM encoding to use */ String getOemEncoding(); /** * Gets the local timezone for time-related operations * * @return local timezone */ TimeZone getLocalTimezone(); /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 25.4K bytes - Click Count (0) -
src/test/java/jcifs/ConfigurationTest.java
mockConfig.getVcNumber(); mockConfig.getCapabilities(); mockConfig.getFlags2(); mockConfig.getSessionLimit(); mockConfig.getOemEncoding(); mockConfig.getLocalTimezone(); mockConfig.getPid(); mockConfig.getMaxMpxCount(); mockConfig.isSigningEnabled(); mockConfig.isIpcSigningEnforced();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.9K bytes - Click Count (0) -
src/main/java/jcifs/config/BaseConfiguration.java
public int getFlags2() { return this.flags2; } @Override public int getSessionLimit() { return this.sessionLimit; } @Override public String getOemEncoding() { return this.oemEncoding; } @Override public TimeZone getLocalTimezone() { return this.localTimeZone; } @Override public int getPid() {
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/internal/smb1/com/SmbComCreateDirectoryTest.java
void setUp() { // Mock the Configuration object mockConfig = mock(Configuration.class); // Define behavior for the OEM encoding, which is used by writeString when(mockConfig.getOemEncoding()).thenReturn(StandardCharsets.UTF_8.name()); } @Test void testConstructor() { // Test that the constructor correctly sets the command and path String directoryName = "testDir";
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)