Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for readBuf (0.04 sec)

  1. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

            assertEquals("c", raf.readLine());
    
            when(raf.read()).thenReturn(-1);
            assertNull(raf.readLine());
        }
    
        @Test
        @DisplayName("readUTF(): decodes bytes after size prefix")
        void readUTF_decodes() throws Exception {
            SmbRandomAccessFile raf = spy(newInstance("r", false, false, false));
            // Size prefix 3, then bytes for "abc"
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

                }
            }
    
            if (c == -1 && input.length() == 0) {
                return null;
            }
    
            return input.toString();
        }
    
        @Override
        public final String readUTF() throws SmbException {
            final int size = readUnsignedShort();
            final byte[] b = new byte[size];
            read(b, 0, size);
            try {
                return Encdec.dec_utf8(b, 0, size);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/io/ByteStreams.java

          try {
            return input.readLine();
          } catch (IOException e) {
            throw new IllegalStateException(e);
          }
        }
    
        @Override
        public String readUTF() {
          try {
            return input.readUTF();
          } catch (IOException e) {
            throw new IllegalStateException(e);
          }
        }
      }
    
      /** Returns a new {@link ByteArrayDataOutput} instance with a default size. */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 31.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbRandomAccessFile.java

                }
            }
    
            if (c == -1 && input.length() == 0) {
                return null;
            }
    
            return input.toString();
        }
    
        @Override
        public final String readUTF() throws SmbException {
            final int size = readUnsignedShort();
            final byte[] b = new byte[size];
            read(b, 0, size);
            try {
                return Encdec.dec_utf8(b, 0, size);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.8K bytes
    - Viewed (0)
Back to top