Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for getOutputStream (0.05 sec)

  1. src/main/java/jcifs/smb1/netbios/NbtSocket.java

        public InputStream getInputStream() throws IOException {
            return new SocketInputStream(super.getInputStream());
        }
    
        @Override
        public OutputStream getOutputStream() throws IOException {
            return new SocketOutputStream(super.getOutputStream());
        }
    
        @Override
        public int getPort() {
            return super.getPort();
        }
    
        @Override
        public InetAddress getLocalAddress() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java

            OutputStream initialOutputStream = mock(OutputStream.class);
            when(mockConnection.getOutputStream()).thenReturn(initialOutputStream);
    
            // Act
            // Get output stream and write data to it
            OutputStream os = ntlmConnection.getOutputStream();
            assertNotNull(os);
            byte[] testData = "test data".getBytes();
            os.write(testData);
            os.flush();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/services/xml/XmlWriterRequest.java

     *
     * @since 4.0.0
     * @param <T> the object type to read
     */
    @Experimental
    public interface XmlWriterRequest<T> {
    
        @Nullable
        Path getPath();
    
        @Nullable
        OutputStream getOutputStream();
    
        @Nullable
        Writer getWriter();
    
        @Nonnull
        T getContent();
    
        @Nullable
        Function<Object, String> getInputLocationFormatter();
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Sat Aug 10 22:21:50 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

            return connection.getInputStream();
        }
    
        @Override
        public OutputStream getOutputStream() throws IOException {
            try {
                connect();
            } catch (final IOException ex) {}
            final OutputStream output = connection.getOutputStream();
            cachedOutput = new ByteArrayOutputStream();
            return new CacheStream(output, cachedOutput);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbFileTest.java

                        0);
            }
    
            @Test
            void testGetOutputStream() throws IOException {
                // Act
                var outputStream = smbFile.getOutputStream();
    
                // Assert
                assertNotNull(outputStream);
                verify(smbFile).openUnshared(SmbConstants.O_CREAT | SmbConstants.O_WRONLY | SmbConstants.O_TRUNC, // 82
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/http/NtlmHttpURLConnection.java

            handshake();
            return this.connection.getInputStream();
        }
    
        @SuppressWarnings("resource")
        @Override
        public OutputStream getOutputStream() throws IOException {
            connect();
            final OutputStream output = this.connection.getOutputStream();
            this.cachedOutput = new ByteArrayOutputStream();
            return new CacheStream(output, this.cachedOutput);
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/http/NetworkExplorerTest.java

                public void setWriteListener(WriteListener listener) {
                }
            };
    
            lenient().when(response.getWriter()).thenReturn(printWriter);
            lenient().when(response.getOutputStream()).thenReturn(servletOutputStream);
    
            // Setup servlet config
            lenient().when(servletConfig.getServletContext()).thenReturn(servletContext);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/http/NtlmHttpFilterTest.java

            lenient().when(request.getSession()).thenReturn(httpSession);
            lenient().when(request.getSession(anyBoolean())).thenReturn(httpSession);
            lenient().when(response.getOutputStream()).thenReturn(servletOutputStream);
        }
    
        @Test
        void testInit_success() throws ServletException {
            // Test successful initialization with valid configuration
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/http/NetworkExplorer.java

            final byte[] buf = new byte[8192];
    
            @SuppressWarnings("resource")
            final ServletOutputStream out = resp.getOutputStream();
            String url;
            int n;
            try (SmbFileInputStream in = new SmbFileInputStream(file)) {
                url = file.getLocator().getPath();
                resp.setContentType("text/plain");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 23.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbTransportImpl.java

                this.socket.setSoTimeout(tc.getConfig().getSoTimeout());
    
                this.out = this.socket.getOutputStream();
                this.in = this.socket.getInputStream();
    
                final SessionServicePacket ssp = new SessionRequestPacket(tc.getConfig(), calledName, tc.getNameServiceClient().getLocalName());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
Back to top