Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 196 for Read (0.23 sec)

  1. src/main/java/jcifs/SmbRandomAccess.java

        void close () throws SmbException;
    
    
        /**
         * Read a single byte from the current position
         * 
         * @return read byte, -1 if EOF
         * @throws SmbException
         */
        int read () throws SmbException;
    
    
        /**
         * Read into buffer from current position
         * 
         * @param b
         *            buffer
         * @return number of bytes read
         * @throws SmbException
         */
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 2.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java

     *
     * @throws IOException if a network error occurs
     */
    
        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
     */
    
        public int read( byte[] b, int off, int len ) throws IOException {
            return readDirect(b, off, len);
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 7.9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/text/Tokenizer.java

                if (peekc == '\r') {
                    peekc = read();
                    if (peekc == '\n') {
                        peekc = read();
                    }
                } else {
                    peekc = read();
                }
                if (peekc < 0) {
                    ttype = TT_EOF;
                    return true;
                }
                peekct = peekc < 256 ? ctype[peekc] : CT_ALPHA;
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/TransactNamedPipeInputStream.java

                result = pipe_buf[beg_idx] & 0xFF;
                beg_idx = ( beg_idx + 1 ) % pipe_buf.length;
            }
            return result;
        }
        public int read( byte[] b ) throws IOException {
            return read( b, 0, b.length );
        }
        public int read( byte[] b, int off, int len ) throws IOException {
            int result = -1;
            int i;
    
            if( len <= 0 ) {
                return 0;
            }
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 4.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbConstants.java

        static final int ATTR_TEMPORARY  = 0x100;
    
        // access mask encoding
        static final int FILE_READ_DATA        = 0x00000001; // 1
        static final int FILE_WRITE_DATA       = 0x00000002; // 2
        static final int FILE_APPEND_DATA      = 0x00000004; // 3
        static final int FILE_READ_EA          = 0x00000008; // 4
        static final int FILE_WRITE_EA         = 0x00000010; // 5
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 8.4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/io/FileUtil.java

            try {
                final FileChannel channel = is.getChannel();
                final ByteBuffer buffer = ByteBuffer.allocate((int) ChannelUtil.size(channel));
                ChannelUtil.read(channel, buffer);
                return buffer.array();
            } finally {
                CloseableUtil.close(is);
            }
        }
    
        /**
         * デフォルトエンコーディングでファイルからテキストを読み込みます。
         *
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbComOpenAndX.java

        // Access Mode Encoding for desiredAccess
        private static final int SHARING_COMPATIBILITY           = 0x00;
        private static final int SHARING_DENY_READ_WRITE_EXECUTE = 0x10;
        private static final int SHARING_DENY_WRITE              = 0x20;
        private static final int SHARING_DENY_READ_EXECUTE       = 0x30;
        private static final int SHARING_DENY_NONE               = 0x40;
    
        private static final int DO_NOT_CACHE  = 0x1000; // bit 12
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 5.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/tests/OplockTests.java

                    int flags = SmbConstants.O_CREAT;
                    int sharing = SmbConstants.FILE_SHARE_DELETE | SmbConstants.FILE_SHARE_READ | SmbConstants.FILE_SHARE_WRITE;
                    int access = SmbConstants.FILE_READ_DATA | SmbConstants.FILE_READ_ATTRIBUTES | SmbConstants.FILE_WRITE_ATTRIBUTES
                            | SmbConstants.FILE_WRITE_DATA;
                    int attrs = 0;
                    int options = 0;
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbComNTCreateAndX.java

                    ServerMessageBlock andx ) {
            super( andx );
            this.path = name;
            command = SMB_COM_NT_CREATE_ANDX;
    
            desiredAccess = access;
            desiredAccess |= FILE_READ_DATA | FILE_READ_EA | FILE_READ_ATTRIBUTES;
    
            // extFileAttributes
            this.extFileAttributes = extFileAttributes;
    
            // shareAccess
            this.shareAccess = shareAccess;
    
            // createDisposition
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 6.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/netbios/Lmhosts.java

                        }
                    }
                    result = this.table.get(name);
                }
            }
            catch ( IOException fnfe ) {
                log.error("Could not read lmhosts " + tc.getConfig().getLmHostsFileName(), fnfe); //$NON-NLS-1$
            }
            return result;
        }
    
    
        void populate ( Reader r, CIFSContext tc ) throws IOException {
            String line;
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 6.1K bytes
    - Viewed (0)
Back to top