Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for getOutputStream (0.22 sec)

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

            } catch (IOException ex) { }
            return connection.getInputStream();
        }
    
        public OutputStream getOutputStream() throws IOException {
            try {
                connect();
            } catch (IOException ex) { }
            OutputStream output = connection.getOutputStream();
            cachedOutput = new ByteArrayOutputStream();
            return new CacheStream(output, cachedOutput);
        }
    
    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

                      SmbFile t = new SmbFile(d1, makeRandomName()) ) {
                    try {
                        try ( OutputStream os = f.getOutputStream() ) {
                            ReadWriteTest.writeRandom(bufSize, length, os);
                        }
    
                        try ( OutputStream os = t.getOutputStream() ) {
                            ReadWriteTest.writeRandom(bufSize, 2 * length, os);
                        }
    
    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/WatchTest.java

                try ( SmbFile cr = new SmbFile(this.base, "modified") ) {
                    cr.createNewFile();
                    setupWatch(w);
                    try ( OutputStream os = cr.getOutputStream() ) {
                        os.write(new byte[] {
                            1, 2, 3, 4
                        });
                    }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/netbios/NbtSocket.java

        }
        public InputStream getInputStream() throws IOException {
            return new SocketInputStream( super.getInputStream() );
        }
        public OutputStream getOutputStream() throws IOException {
            return new SocketOutputStream( super.getOutputStream() );
        }
        public int getPort() {
            return super.getPort();
        }
        public InetAddress getLocalAddress() {
            return super.getLocalAddress();
        }
    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/test/java/jcifs/tests/ReadWriteTest.java

            try ( SmbFile f = createTestFile() ) {
                try {
                    try ( OutputStream os = f.getOutputStream() ) {
                        writeRandom(bufSize, length, os);
                    }
    
                    assertEquals("File size matches", length, f.length());
    
    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)
  6. src/main/java/jcifs/http/NtlmHttpURLConnection.java

            return this.connection.getInputStream();
        }
    
    
        @SuppressWarnings ( "resource" )
        @Override
        public OutputStream getOutputStream () throws IOException {
            connect();
            OutputStream output = this.connection.getOutputStream();
            this.cachedOutput = new ByteArrayOutputStream();
            return new CacheStream(output, this.cachedOutput);
        }
    
    
        @Override
    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/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() );
    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)
  8. src/test/java/jcifs/tests/TimeoutTest.java

                int soTimeout = ctx.getConfig().getSoTimeout();
                f.createNewFile();
                try {
                    try ( OutputStream os = f.getOutputStream() ) {
                        os.write(new byte[] {
                            1, 2, 3, 4, 5, 6, 7, 8
                        });
                    }
    
                    try ( InputStream is = f.getInputStream() ) {
    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)
  9. src/main/java/jcifs/http/NetworkExplorer.java

            byte[] buf = new byte[8192];
    
            @SuppressWarnings ( "resource" )
            ServletOutputStream out = resp.getOutputStream();
            String url;
            int n;
            try ( SmbFileInputStream in = new SmbFileInputStream(file) ) {
                url = file.getLocator().getPath();
                resp.setContentType("text/plain");
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 21.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/http/NetworkExplorer.java

            byte[] buf = new byte[8192];
            String url, type;
            int n;
    
            try (SmbFileInputStream in = new SmbFileInputStream(file);
                    ServletOutputStream out = resp.getOutputStream()) {
                url = file.getPath();
    
                resp.setContentType( "text/plain" );
    
                if(( n = url.lastIndexOf( '.' )) > 0 &&
                        ( type = url.substring( n + 1 )) != null &&
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Wed Jan 22 03:57:31 GMT 2020
    - 19.7K bytes
    - Viewed (0)
Back to top