Search Options

Results per page
Sort
Preferred Languages
Advance

Results 671 - 680 of 3,054 for throws (0.04 sec)

  1. src/main/java/jcifs/smb1/UniAddress.java

         * @return array of resolved UniAddress instances
         * @throws UnknownHostException if the host cannot be resolved
         */
        public static UniAddress[] getAllByName(final String hostname, final boolean possibleNTDomainOrWorkgroup) throws UnknownHostException {
            Object addr;
            int i;
    
            if (hostname == null || hostname.length() == 0) {
                throw new UnknownHostException();
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbResourceLocatorInternalTest.java

        void overlapsThrowsCifsException() throws Exception {
            when(locator.overlaps(any())).thenThrow(new CIFSException("Simulated failure"));
    
            CIFSException ex = assertThrows(CIFSException.class, () -> locator.overlaps(other));
            assertTrue(ex.getMessage().contains("Simulated failure"));
    
            verify(locator).overlaps(other);
            verifyNoMoreInteractions(locator);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/dict/stemmeroverride/StemmerOverrideFile.java

        /**
         * Updates the dictionary file with content from an input stream.
         *
         * @param in The input stream containing the new dictionary content.
         * @throws IOException if an I/O error occurs.
         */
        public synchronized void update(final InputStream in) throws IOException {
            try (StemmerOverrideUpdater updater = new StemmerOverrideUpdater(null)) {
                reload(updater, in);
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/http/NetworkExplorer.java

         * @param req the HTTP servlet request
         * @param resp the HTTP servlet response
         * @param file the SMB file to download
         * @throws IOException if an I/O error occurs
         */
        protected void doFile(final HttpServletRequest req, final HttpServletResponse resp, final SmbFile file) throws IOException {
            final byte[] buf = new byte[8192];
            String url, type;
            int n;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/TransactNamedPipeOutputStream.java

        public void write(final int b) throws IOException {
            tmp[0] = (byte) b;
            write(tmp, 0, 1);
        }
    
        @Override
        public void write(final byte[] b) throws IOException {
            write(b, 0, b.length);
        }
    
        @Override
        public void write(final byte[] b, final int off, int len) throws IOException {
            if (len < 0) {
                len = 0;
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  6. compat/maven-compat/src/test/java/org/apache/maven/artifact/metadata/SwitchableMetadataSource.java

        @Override
        public ResolutionGroup retrieve(MetadataResolutionRequest request) throws ArtifactMetadataRetrievalException {
            return delegate.retrieve(request);
        }
    
        @Override
        public ResolutionGroup retrieve(
                Artifact artifact, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories)
                throws ArtifactMetadataRetrievalException {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/pac/kerberos/KerberosPacAuthDataTest.java

        @BeforeEach
        void setUp() {
            keys = new HashMap<>();
        }
    
        // Test successful PAC creation with mocked Pac construction
        @Test
        void testConstructorSuccess() throws PACDecodingException {
            // Setup key
            byte[] keyBytes = new byte[32];
            KerberosKey kdcKey = new KerberosKey(null, keyBytes, PacSignature.HMAC_SHA1_96_AES256, 1);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/crawler/serializer/DataSerializer.java

         * Supported types are Kryo and JavaBin serialization.
         * </p>
         *
         * @param obj the object to serialize
         * @return the serialized object as a byte array
         * @throws IllegalArgumentException if an unsupported serializer type is configured
         * @throws IORuntimeException if an I/O error occurs during serialization
         */
        public byte[] fromObjectToBinary(final Object obj) {
            final String serializer = getSerializerType();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 6.1K bytes
    - Viewed (3)
  9. src/test/java/org/codelibs/core/collection/IndexedIteratorTest.java

    import java.io.StringReader;
    import java.util.List;
    
    import org.junit.Test;
    
    /**
     * @author wyukawa
     *
     */
    public class IndexedIteratorTest {
    
        /**
         * @throws Exception
         */
        @Test
        public void test() throws Exception {
            final List<String> list = newArrayList();
            list.add("aaa");
            list.add("bbb");
            list.add("ccc");
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

        class ReadBytesWireFormatTests {
    
            @Test
            @DisplayName("Should correctly parse valid SMB2 Close response")
            void testReadBytesWireFormatWithValidData() throws SMBProtocolDecodingException {
                // Given
                byte[] buffer = new byte[60];
                int bufferIndex = 0;
    
                // Structure Size (2 bytes) - must be 60
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 26.9K bytes
    - Viewed (0)
Back to top