Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 818 for Write (0.14 sec)

  1. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

                fp += n;
                return n;
            }
            return 0;
        }
    
        public void write( int b ) throws SmbException {
            tmp[0] = (byte)b;
            write( tmp, 0, 1 );
        }
        public void write( byte b[] ) throws SmbException {
            write( b, 0, b.length );
        }
        public void write( byte b[], int off, int len ) throws SmbException {
            if( len <= 0 ) {
                return;
            }
    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)
  2. android/guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

        if (JAVA_IO_TMPDIR.value().equals("/sdcard")) {
          assertThrows(IOException.class, () -> out.write(data));
          return;
        }
        out.write(data);
        assertTrue(Arrays.equals(data, source.read()));
    
        out.close();
        assertThrows(IOException.class, () -> out.write(42));
    
        // Verify that write had no effect
        assertTrue(Arrays.equals(data, source.read()));
        out.reset();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/services/xml/XmlFactory.java

        default void write(@Nonnull T content, @Nonnull Path path) throws XmlWriterException {
            write(XmlWriterRequest.<T>builder().content(content).path(path).build());
        }
    
        default void write(@Nonnull T content, @Nonnull OutputStream outputStream) throws XmlWriterException {
            write(XmlWriterRequest.<T>builder()
                    .content(content)
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Nov 17 15:52:15 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/AppendableWriterTest.java

        StringBuilder builder = new StringBuilder();
        Writer writer = new AppendableWriter(builder);
    
        writer.write("Hello".toCharArray());
        writer.write(',');
        writer.write(0xBEEF0020); // only lower 16 bits are important
        writer.write("Wo");
        writer.write("Whirled".toCharArray(), 3, 2);
        writer.write("Mad! Mad, I say", 2, 2);
    
        assertEquals("Hello, World!", builder.toString());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/TestOutputStream.java

      public boolean closed() {
        return closed;
      }
    
      @Override
      public void write(byte[] b, int off, int len) throws IOException {
        throwIf(closed);
        throwIf(WRITE_THROWS);
        super.write(b, off, len);
      }
    
      @Override
      public void write(int b) throws IOException {
        throwIf(closed);
        throwIf(WRITE_THROWS);
        super.write(b);
      }
    
      @Override
      public void close() throws IOException {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/TransactNamedPipeOutputStream.java

        }
    
        public void close() throws IOException {
            pipe.close();
        }
        public void write( int b ) throws IOException {
            tmp[0] = (byte)b;
            write( tmp, 0, 1 );
        }
        public void write( byte[] b ) throws IOException {
            write( b, 0, b.length );
        }
        public void write( byte[] b, int off, int len ) throws IOException {
            if( len < 0 ) {
                len = 0;
            }
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 2.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/com/SmbComOpenAndX.java

                this.desiredAccess |= SHARING_DENY_NONE;
            }
            else if ( shareAccess == SmbConstants.FILE_NO_SHARE ) {
                this.desiredAccess |= SHARING_DENY_READ_WRITE_EXECUTE;
            }
            else if ( ( shareAccess & SmbConstants.FILE_SHARE_WRITE ) == 0 ) {
                this.desiredAccess |= SHARING_DENY_WRITE;
            }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/CountingOutputStreamTest.java

        assertEquals(written, counter.getCount());
    
        counter.write(0);
        written += 1;
        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
    
        byte[] data = new byte[10];
        counter.write(data);
        written += 10;
        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
    
        counter.write(data, 0, 5);
        written += 5;
        assertEquals(written, out.size());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/CountingOutputStreamTest.java

        assertEquals(written, counter.getCount());
    
        counter.write(0);
        written += 1;
        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
    
        byte[] data = new byte[10];
        counter.write(data);
        written += 10;
        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
    
        counter.write(data, 0, 5);
        written += 5;
        assertEquals(written, out.size());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/ACE.java

        public static final int FILE_WRITE_ATTRIBUTES = 0x00000100; // 9
        public static final int DELETE                = 0x00010000; // 16
        public static final int READ_CONTROL          = 0x00020000; // 17
        public static final int WRITE_DAC             = 0x00040000; // 18
        public static final int WRITE_OWNER           = 0x00080000; // 19
        public static final int SYNCHRONIZE           = 0x00100000; // 20
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 7.2K bytes
    - Viewed (0)
Back to top