Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 362 for getByte (0.06 sec)

  1. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsFileTest.java

                fos.write(getTestContent().getBytes(StandardCharsets.UTF_8));
            }
    
            // Create a temporary project.properties file for SystemHelper
            File propFile = File.createTempFile("project", ".properties");
            propFile.deleteOnExit();
            try (FileOutputStream fos = new FileOutputStream(propFile)) {
                fos.write("fess.version=1.0.0".getBytes());
            }
    
            // Initialize SystemHelper
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbFile.java

        /**
         * Returned by {@link #getType()} if the resource this {@code SmbFile}
         * represents is a server.
         */
        public static final int TYPE_SERVER = 0x04;
        /**
         * Returned by {@link #getType()} if the resource this {@code SmbFile}
         * represents is a share.
         */
        public static final int TYPE_SHARE = 0x08;
        /**
         * Returned by {@link #getType()} if the resource this {@code SmbFile}
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 112.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertTrue(
            from.getType() + " is expected to be assignable to " + to.getType(),
            to.isSupertypeOf(from));
        assertTrue(
            to.getType() + " is expected to be a supertype of " + from.getType(),
            to.isSupertypeOf(from));
        assertTrue(
            from.getType() + " is expected to be a subtype of " + to.getType(), from.isSubtypeOf(to));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbShareInfoTest.java

            // Test with hidden flag (0x80000000) which should be ignored by getType()
            SmbShareInfo hiddenPrinter = new SmbShareInfo("HIDDEN_PRINTER", 1 | 0x80000000, "hidden printer");
            assertEquals(SmbFile.TYPE_PRINTER, hiddenPrinter.getType());
        }
    
        /**
         * Test of getAttributes method, of class SmbShareInfo.
         */
        @Test
        void testGetAttributes() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/util/InputStreamThreadTest.java

    public class InputStreamThreadTest extends UnitFessTestCase {
    
        public void test_constructor() {
            String input = "test line";
            InputStream is = new ByteArrayInputStream(input.getBytes(StandardCharsets.UTF_8));
    
            InputStreamThread thread = new InputStreamThread(is, StandardCharsets.UTF_8, 10, null);
    
            assertEquals("InputStreamThread", thread.getName());
            assertNotNull(thread);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/hash/Murmur3Hash32Test.java

        assertHash(expected, murmur3_32().hashBytes(string.getBytes(charset)));
        assertHash(expected, murmur3_32_fixed().hashBytes(string.getBytes(charset)));
        assertHash(expected, murmur3_32().newHasher().putBytes(string.getBytes(charset)).hash());
        assertHash(expected, murmur3_32_fixed().newHasher().putBytes(string.getBytes(charset)).hash());
      }
    
      private boolean allBmp(String string) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/dict/mapping/CharMappingFileTest.java

            if (testFile != null && testFile.exists()) {
                testFile.delete();
            }
            super.tearDown();
        }
    
        // Test getType method
        public void test_getType() {
            assertEquals("mapping", charMappingFile.getType());
        }
    
        // Test getPath method
        public void test_getPath() {
            assertEquals(testFile.getAbsolutePath(), charMappingFile.getPath());
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/net/SmbShareInfoTest.java

        void testGetTypeWithDifferentShareTypes(int inputType, int expectedType) {
            SmbShareInfo info = new SmbShareInfo(TEST_NET_NAME, inputType, TEST_REMARK);
            assertEquals(expectedType, info.getType());
        }
    
        @Test
        @DisplayName("Test getType with hidden flag")
        void testGetTypeWithHiddenFlag() {
            // Hidden flag (0x80000000) should be masked out
            int hiddenPrinterType = 0x80000001; // Hidden printer
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/hash/Fingerprint2011Test.java

        assertThat(fingerprint(stringA.getBytes(UTF_8)))
            .isNotEqualTo(fingerprint(stringB.getBytes(UTF_8)));
    
        // ISO 8859-1 only has 0-255 (ubyte) representation so throws away UTF-8 characters
        // greater than 127 (ie with their top bit set).
        // Don't attempt to do this in real code.
        assertEquals(
            fingerprint(stringA.getBytes(ISO_8859_1)), fingerprint(stringB.getBytes(ISO_8859_1)));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/FileEntryTest.java

        static Stream<Arguments> intGetterProvider() {
            return Stream.of(Arguments.of((IntGetter) FileEntry::getType, -1, "negative type"),
                    Arguments.of((IntGetter) FileEntry::getType, 0, "zero type"),
                    Arguments.of((IntGetter) FileEntry::getType, Integer.MAX_VALUE, "max type"),
    
                    Arguments.of((IntGetter) FileEntry::getAttributes, 0, "no attributes"),
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10K bytes
    - Viewed (0)
Back to top