Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for Read (0.6 sec)

  1. src/main/java/jcifs/util/transport/Transport.java

        private static int id = 0;
        private static final Logger log = LoggerFactory.getLogger(Transport.class);
    
    
        /**
         * Read bytes from the input stream into a buffer
         * 
         * @param in
         * @param b
         * @param off
         * @param len
         * @return number of bytes read
         * @throws IOException
         */
        public static int readn ( InputStream in, byte[] b, int off, int len ) throws IOException {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Nov 01 18:12:21 GMT 2020
    - 24.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

            fp = 0L;
        }
    
        public int read() throws SmbException {
            if( read( tmp, 0, 1 ) == -1 ) {
                return -1;
            }
            return tmp[0] & 0xFF;
        }
        public int read( byte b[] ) throws SmbException {
            return read( b, 0, b.length );
        }
        public int read( byte b[], int off, int len ) throws SmbException {
            if( len <= 0 ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 10.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

    import jcifs.smb1.ntlmssp.Type2Message;
    import jcifs.smb1.ntlmssp.Type3Message;
    import jcifs.smb1.util.Base64;
    
    /**
     * Wraps an <code>HttpURLConnection</code> to provide NTLM authentication
     * services.
     *
     * Please read <a href="../../../httpclient.html">Using jCIFS NTLM Authentication for HTTP Connections</a>.
     */
    public class NtlmHttpURLConnection extends HttpURLConnection {
    
        private static final int MAX_REDIRECTS =
    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)
  4. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

                    log.trace("Short read, have " + n + ", want " + this.byteCount);
                }
                bufferIndex += this.byteCount;
            }
    
            /*
             * if there is an andx and it itself is an andx then just recur by
             * calling this method for it. otherwise just read it's parameter words
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Nov 28 10:56:27 GMT 2022
    - 14.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

                }
                else {
                    SmbPipeOutputStream out = getOutput();
                    SmbPipeInputStream in = getInput();
                    out.write(buf, off, length);
                    return in.read(inB);
                }
            }
        }
    
    
        @Override
        public int recv ( byte[] buf, int off, int len ) throws IOException {
            return getInput().readDirect(buf, off, len);
    
        }
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Apr 13 17:05:22 GMT 2020
    - 10.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbFileInputStream.java

         */
    
        @Override
        public int read ( byte[] b ) throws IOException {
            return read(b, 0, b.length);
        }
    
    
        /**
         * Reads up to len bytes of data from this input stream into an array of bytes.
         *
         * @throws IOException
         *             if a network error occurs
         */
    
        @Override
        public int read ( byte[] b, int off, int len ) throws IOException {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun May 17 08:55:14 GMT 2020
    - 13.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/dcerpc/DcerpcHandle.java

                    buf.enc_ndr_short(msg.getOpnum());
                }
    
                if ( ( msg.flags & DCERPC_LAST_FRAG ) != DCERPC_LAST_FRAG ) {
                    // all fragment but the last get written using read/write semantics
                    doSendFragment(out, off, msg.length);
                    off += fragSize;
                }
                else {
                    return off;
                }
            }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jun 30 10:11:57 GMT 2019
    - 12.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

     * credentials are retrieved from the <tt>jcifs.smb1.smb1.client.domain</tt>,
     * <tt>jcifs.smb1.smb1.client.username</tt>, and <tt>jcifs.smb1.smb1.client.password</tt>
     * properties.
     * <p>
     * Read <a href="../../../authhandler.html">jCIFS Exceptions and
     * NtlmAuthenticator</a> for related information.
     */
    
    public final class NtlmPasswordAuthentication implements Principal, Serializable {
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 22.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/SMB1SigningDigest.java

            byte[] sequence = new byte[8];
            SMBUtil.writeInt4(msg.getSignSeq(), sequence, 0);
            update(sequence, 0, sequence.length);
            index += 8;
            if ( msg.getCommand() == ServerMessageBlock.SMB_COM_READ_ANDX ) {
                /*
                 * SmbComReadAndXResponse reads directly from the stream into separate byte[] b.
                 */
                SmbComReadAndXResponse raxr = (SmbComReadAndXResponse) msg;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Aug 05 09:45:59 GMT 2018
    - 10.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/netbios/NameServiceClient.java

                    socket.setSoTimeout( closeTimeout );
                    socket.receive( in );
    
                    if( log.level > 3 )
                        log.println( "NetBIOS: new data read from socket" );
    
                    nameTrnId = NameServicePacket.readNameTrnId( rcv_buf, 0 );
                    response = (NameServicePacket)responseTable.get( new Integer( nameTrnId ));
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 17.4K bytes
    - Viewed (0)
Back to top