Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for readFully (0.05 sec)

  1. src/main/java/jcifs/pac/PacDataInputStream.java

        }
    
        /**
         * Reads bytes into the specified array.
         * @param b the byte array to read into
         * @throws IOException if an I/O error occurs
         */
        public void readFully(final byte[] b) throws IOException {
            this.dis.readFully(b);
        }
    
        /**
         * Reads bytes into the specified array at the given offset.
         * @param b the byte array to read into
         * @param off the start offset in the array
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

            } while (len > 0 && n == r);
    
            return (int) (fp - start);
        }
    
        @Override
        public final void readFully(final byte b[]) throws SmbException {
            readFully(b, 0, b.length);
        }
    
        @Override
        public final void readFully(final byte b[], final int off, final int len) throws SmbException {
            int n = 0, count;
    
            do {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

        }
    
        @Test
        @DisplayName("readFully(): throws SmbEndOfFileException on premature EOF")
        void readFully_throws_onEOF() throws Exception {
            SmbRandomAccessFile raf = spy(newInstance("r", false, false, false));
            doReturn(-1).when(raf).read(any(byte[].class), anyInt(), anyInt());
            assertThrows(SmbEndOfFileException.class, () -> raf.readFully(new byte[4]));
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/pac/PacDataInputStreamTest.java

            byte[] buffer = new byte[4];
            pdis.readFully(buffer);
            assertArrayEquals(data, buffer);
        }
    
        @Test
        public void testReadFullyWithOffset() throws IOException {
            byte[] data = new byte[] { 0x01, 0x02, 0x03, 0x04 };
            PacDataInputStream pdis = createInputStream(data);
            byte[] buffer = new byte[6];
            pdis.readFully(buffer, 1, 4);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/pac/PacSignature.java

                    this.checksum = new byte[12];
                    break;
                default:
                    this.checksum = new byte[bufferStream.available()];
                    break;
                }
                bufferStream.readFully(this.checksum);
            } catch (final IOException e) {
                throw new PACDecodingException("Malformed PAC signature", e);
            }
        }
    
        /**
         * Gets the checksum type of this signature.
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbRandomAccessFile.java

            } catch (final CIFSException e) {
                throw SmbException.wrap(e);
            }
        }
    
        @Override
        public final void readFully(final byte b[]) throws SmbException {
            readFully(b, 0, b.length);
        }
    
        @Override
        public final void readFully(final byte b[], final int off, final int len) throws SmbException {
            int n = 0, count;
    
            do {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.8K bytes
    - Viewed (0)
Back to top