Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for getInputStream (0.45 sec)

  1. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

        public Permission getPermission() throws IOException {
            return connection.getPermission();
        }
    
        public InputStream getInputStream() throws IOException {
            try {
                handshake();
            } catch (IOException ex) { }
            return connection.getInputStream();
        }
    
        public OutputStream getOutputStream() throws IOException {
            try {
                connect();
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 20.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/FileOperationsTest.java

                        assertTrue(f.exists());
                        assertEquals(f.length(), t.length());
                        assertEquals(f.getAttributes(), t.getAttributes());
    
                        try ( InputStream is = t.getInputStream() ) {
                            ReadWriteTest.verifyRandom(bufSize, length, is);
                        }
                    }
                    finally {
                        d1.delete();
                    }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:17:59 GMT 2023
    - 16.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/ReadWriteTest.java

                    // this should truncate
                    try ( OutputStream os = f.openOutputStream() ) {
                        writeRandom(4096, 1024, os);
                    }
    
                    try ( InputStream is = f.getInputStream() ) {
                        verifyRandom(4096, 1024, true, is);
                    }
                }
                finally {
                    f.delete();
                }
            }
        }
    
    
        @Test
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 13.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/netbios/NbtSocket.java

            connect();
        }
    
        public NbtAddress getNbtAddress() {
            return address;
        }
        public InputStream getInputStream() throws IOException {
            return new SocketInputStream( super.getInputStream() );
        }
        public OutputStream getOutputStream() throws IOException {
            return new SocketOutputStream( super.getOutputStream() );
        }
        public int getPort() {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 4.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/TestLocking.java

                        } else if (r < 0.667) {
                            d.listFiles();
    //                      System.out.print('l');
                        } else if (r < 1.0) {
                            InputStream in = f.getInputStream();
                            while (in.read(buf) > 0) {
    //                          System.out.print('r');
                            }
                            in.close();
                        }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 3.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/http/NtlmHttpURLConnection.java

        public Permission getPermission () throws IOException {
            return this.connection.getPermission();
        }
    
    
        @Override
        public InputStream getInputStream () throws IOException {
            handshake();
            return this.connection.getInputStream();
        }
    
    
        @SuppressWarnings ( "resource" )
        @Override
        public OutputStream getOutputStream () throws IOException {
            connect();
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 25.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/tests/RandomAccessFileTest.java

                        assertEquals(l + off, raf.getFilePointer());
                        raf.setLength(raf.getFilePointer() + l);
                    }
    
                    try ( InputStream is = f.getInputStream() ) {
                        verifyZero(off, is);
                        ReadWriteTest.verifyRandom(bufSize, l, false, is);
                        verifyZero(l, is);
                    }
                }
                finally {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 11.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbTransport.java

                socket.connect(new InetSocketAddress(address.getHostAddress(), 139), CONN_TIMEOUT);
                socket.setSoTimeout( SO_TIMEOUT );
    
                out = socket.getOutputStream();
                in = socket.getInputStream();
    
                SessionServicePacket ssp = new SessionRequestPacket( calledName,
                        NbtAddress.getLocalName() );
                out.write( sbuf, 0, ssp.writeWireFormat( sbuf, 0 ));
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 31.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/tests/TimeoutTest.java

                        os.write(new byte[] {
                            1, 2, 3, 4, 5, 6, 7, 8
                        });
                    }
    
                    try ( InputStream is = f.getInputStream() ) {
                        for ( int i = 0; i < 8; i++ ) {
                            is.read();
                            Thread.sleep(soTimeout);
                        }
                    }
                }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 12.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();
    
                SessionServicePacket ssp = new SessionRequestPacket(tc.getConfig(), calledName, tc.getNameServiceClient().getLocalName());
                this.out.write(this.sbuf, 0, ssp.writeWireFormat(this.sbuf, 0));
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Wed Jan 18 23:47:00 GMT 2023
    - 67K bytes
    - Viewed (0)
Back to top