Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 95 for Read (0.12 sec)

  1. src/test/java/jcifs/tests/AllTests.java

            if ( !fname.endsWith(".conf") ) {
                return;
            }
            Properties props = new Properties();
            try ( FileChannel ch = FileChannel.open(config, StandardOpenOption.READ);
                  InputStream is = Channels.newInputStream(ch) ) {
                props.load(is);
    
            }
            if ( !props.isEmpty() ) {
                Map<String, String> map = toMap(props);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 10:52:42 GMT 2020
    - 14.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbRandomAccessFile.java

        }
    
    
        @Override
        public int read () throws SmbException {
            if ( read(this.tmp, 0, 1) == -1 ) {
                return -1;
            }
            return this.tmp[ 0 ] & 0xFF;
        }
    
    
        @Override
        public int read ( byte b[] ) throws SmbException {
            return read(b, 0, b.length);
        }
    
    
        @Override
        public int read ( byte b[], int off, int len ) throws SmbException {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Wed Jan 08 12:01:33 GMT 2020
    - 18.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/RandomAccessFileTest.java

                int rs = Math.min(bufSize, (int) ( length - p ));
                int read = is.read(buffer, 0, rs);
                if ( read < 0 ) {
                    fail("Unexpected EOF");
                }
    
                byte verify[] = new byte[read];
                ReadWriteTest.randBytes(r, verify);
                byte actual[] = Arrays.copyOfRange(buffer, 0, read);
    
                assertArrayEquals("Data matches at offset " + p, actual, verify);
    
    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)
  4. src/main/java/jcifs/ACE.java

     * will succeed because the inherited ACE allows local <tt>Administrators</tt>
     * both <tt>FILE_READ_DATA</tt> and <tt>FILE_WRITE_DATA</tt> access.
     */
    public interface ACE {
    
        /**
         * 
         */
        public static final int FILE_READ_DATA = 0x00000001; // 1
        /**
         * 
         */
        public static final int FILE_WRITE_DATA = 0x00000002; // 2
        /**
         * 
         */
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 6.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/ReadWriteTest.java

                int rs = Math.min(bufSize, (int) ( length - p ));
                int read = is.read(buffer, 0, rs);
                if ( read < 0 ) {
                    fail("Unexpected EOF at " + p);
                }
    
                byte verify[] = new byte[read];
                randBytes(r, verify);
                byte actual[] = Arrays.copyOfRange(buffer, 0, read);
    
                assertArrayEquals("Data matches at offset " + p, actual, verify);
    
    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/SmbResource.java

         * exists and is not marked read-only. By default, resources are
         * considered to be read-only and therefore for <code>smb://</code>,
         * <code>smb://workgroup/</code>, and <code>smb://server/</code> resources
         * will be read-only.
         *
         * @return <code>true</code> if the resource exists is not marked
         *         read-only
         * @throws CIFSException
         */
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Dec 20 14:09:34 GMT 2020
    - 26K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java

         * ServerMessageBlock would have to perform the same read
         * operation on the input stream, we might as will pull that
         * common functionality into the superclass and read wordCount
         * and byteCount worth of data.
         * 
         * We will still use the readXxxWireFormat return values to
         * indicate how many bytes(note: readParameterWordsWireFormat
         * returns bytes read and not the number of words(but the
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 21K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbComWriteAndX.java

                            * like writeandx will choke if session
                            * closes in between */
        }
        int getBatchLimit( byte command ) {
            if( command == SMB_COM_READ_ANDX ) {
                return READ_ANDX_BATCH_LIMIT;
            }
            if( command == SMB_COM_CLOSE ) {
                return CLOSE_BATCH_LIMIT;
            }
            return 0;
        }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 4.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

         * ServerMessageBlock would have to perform the same read
         * operation on the input stream, we might as will pull that
         * common functionality into the superclass and read wordCount
         * and byteCount worth of data.
         * 
         * We will still use the readXxxWireFormat return values to
         * indicate how many bytes(note: readParameterWordsWireFormat
         * returns bytes read and not the number of words(but the
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Aug 05 09:45:59 GMT 2018
    - 32.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbTransportImpl.java

            /*
             * Note the Transport thread isn't running yet so we can
             * read from the socket here.
             */
            try {
                this.socket.setSoTimeout(this.transportContext.getConfig().getConnTimeout());
                if ( peekKey() == null ) /* try to read header */
                    throw new IOException("transport closed in negotiate");
            }
            finally {
    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