Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 43 for rw (0.07 sec)

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

                    try ( SmbFile d1 = createTestDirectory();
                          SmbFile t = new SmbFile(d1, makeRandomName()) ) {
                        try {
                            try ( SmbRandomAccessFile ra = f.openRandomAccess("rw") ) {
                                ra.setLength(length);
                            }
    
                            f.copyTo(t);
                            assertTrue(f.exists());
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:17:59 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/cache2/FileOperatorTest.kt

      private var file: File? = null
      private var randomAccessFile: RandomAccessFile? = null
    
      @BeforeEach
      fun setUp() {
        file = File(tempDir, "test")
        randomAccessFile = RandomAccessFile(file, "rw")
      }
    
      @AfterEach
      fun tearDown() {
        randomAccessFile!!.close()
      }
    
      @Test
      fun read() {
        write("Hello, World".encodeUtf8())
        val operator =
          FileOperator(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. cmd/erasure-object.go

    					if err == nil {
    						fi, err = fileInfoFromRaw(rfi, bucket, object, readData, opts.InclFreeVersions)
    					}
    				}
    
    				rw.Lock()
    				rawArr[i] = rfi
    				metaArr[i], errs[i] = fi, err
    				rw.Unlock()
    
    				done <- err == nil
    			}(i, disk)
    		}
    
    		wg.Wait()
    		xioutil.SafeClose(done)
    
    		fi, ok := <-mrfCheck
    		if !ok {
    			return
    		}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java

                FileChannel channel = null;
                FileLock lock = null;
                try {
                    Properties props = new Properties();
    
                    channel = new RandomAccessFile(touchfile, "rw").getChannel();
                    lock = channel.lock();
    
                    if (touchfile.canRead()) {
                        getLogger().debug("Reading resolution-state from: " + touchfile);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/ReadWriteTest.java

            try ( SmbFile f = createTestFile() ) {
                try {
                    try ( SmbRandomAccessFile raf = new SmbRandomAccessFile(f, "rw") ) {
    
                    }
                }
                finally {
                    f.delete();
                }
            }
        }
    
    
        private String getFifoPipeUrl () {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 13.2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/TempFileCreator.java

        static {
          Set<String> views = FileSystems.getDefault().supportedFileAttributeViews();
          if (views.contains("posix")) {
            filePermissions = () -> asFileAttribute(PosixFilePermissions.fromString("rw-------"));
            directoryPermissions = () -> asFileAttribute(PosixFilePermissions.fromString("rwx------"));
          } else if (views.contains("acl")) {
            filePermissions = directoryPermissions = userPermissions();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 06 17:11:11 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/SmbResource.java

         */
        ACE[] getShareSecurity ( boolean resolveSids ) throws IOException;
    
    
        /**
         * Opens the file for random access
         * 
         * @param mode
         *            access mode (r|rw)
         * @param sharing
         *            flags indicating for which operations others may concurrently open the file
         * @return random access file, needs to be closed when finished
         * @throws CIFSException
         * 
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Dec 20 14:09:34 UTC 2020
    - 26K bytes
    - Viewed (1)
  8. src/main/java/jcifs/smb/SmbRandomAccessFile.java

                if ( mode.equals("r") ) {
                    this.openFlags = SmbConstants.O_CREAT | SmbConstants.O_RDONLY;
                    this.access = SmbConstants.FILE_READ_DATA;
                }
                else if ( mode.equals("rw") ) {
                    this.openFlags = SmbConstants.O_CREAT | SmbConstants.O_RDWR | SmbConstants.O_APPEND;
                    this.write_andx_resp = new SmbComWriteAndXResponse(th.getConfig());
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 08 12:01:33 UTC 2020
    - 18.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/FilesTest.java

        assertTrue(Files.equal(asciiFile, temp));
    
        Files.copy(i18nFile, temp);
        assertTrue(Files.equal(i18nFile, temp));
    
        Files.copy(asciiFile, temp);
        RandomAccessFile rf = new RandomAccessFile(temp, "rw");
        rf.writeByte(0);
        rf.close();
        assertEquals(asciiFile.length(), temp.length());
        assertFalse(Files.equal(asciiFile, temp));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  10. cmd/object-handlers.go

    				} else {
    					writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    				}
    				return
    			}
    			nr := httptest.NewRecorder()
    			rw := xhttp.NewResponseRecorder(nr)
    			rw.LogErrBody = true
    			rw.LogAllBody = true
    			rreq.SelectParameters.Evaluate(rw)
    			rreq.SelectParameters.Close()
    			return
    		}
    		opts := ObjectOptions{
    			Transition: TransitionOptions{
    				RestoreRequest: rreq,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
Back to top