- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for getSupportedAlgorithms (0.63 sec)
-
src/main/java/jcifs/smb/compression/CompressionService.java
boolean isAlgorithmSupported(int algorithm); /** * Gets the list of supported compression algorithms. * * @return array of supported algorithm constants */ int[] getSupportedAlgorithms(); /** * Estimates the compression ratio for the given data and algorithm. * This can be used to decide whether compression is worthwhile. * * @param data the data to analyze
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 5.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/compression/DefaultCompressionServiceTest.java
largeTestData = generateTestData(8192); } @Test @DisplayName("Test supported algorithms") public void testSupportedAlgorithms() { int[] supported = compressionService.getSupportedAlgorithms(); assertNotNull(supported); assertTrue(supported.length > 0); assertTrue(compressionService.isAlgorithmSupported(CompressionService.COMPRESSION_NONE));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/compression/DefaultCompressionService.java
if (supported == algorithm) { return true; } } return false; } @Override public int[] getSupportedAlgorithms() { return SUPPORTED_ALGORITHMS.clone(); } @Override public double estimateCompressionRatio(byte[] data, int algorithm) { if (data == null || data.length == 0) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.2K bytes - Viewed (0)