Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,204 for writeFn (0.04 sec)

  1. cmd/batch-handlers.go

    						slowCh <- obj
    						continue
    					}
    
    					batch = append(batch, obj.Item)
    
    					if len(batch) < *r.Source.Snowball.Batch {
    						continue
    					}
    					writeFn(batch)
    					batch = batch[:0]
    				}
    				writeFn(batch)
    				xioutil.SafeClose(slowCh)
    			}()
    		} else {
    			slowCh = walkCh
    		}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 63.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/io/CharStreams.java

       * writer will close the target if it is {@link Closeable}, and flushing the writer will flush the
       * target if it is {@link java.io.Flushable}.
       *
       * @param target the object to which output will be sent
       * @return a new Writer object, unless target is a Writer, in which case the target is returned
       */
      public static Writer asWriter(Appendable target) {
        if (target instanceof Writer) {
          return (Writer) target;
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 30 17:25:01 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/dict/stopwords/StopwordsFile.java

                if (item != null && item.isUpdated()) {
                    try {
                        writer.write(item.toLineString());
                        writer.write(Constants.LINE_SEPARATOR);
                        return item;
                    } catch (final IOException e) {
                        throw new DictionaryException("Failed to write: " + item, e);
                    }
                }
                return null;
            }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/dict/mapping/CharMappingFile.java

                }
            }
    
            /**
             * Writes a raw line of text to the temporary file.
             *
             * @param line the line of text to write
             */
            public void write(final String line) {
                try {
                    writer.write(line);
                    writer.write(Constants.LINE_SEPARATOR);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/dict/stemmeroverride/StemmerOverrideFile.java

                if (item != null && item.isUpdated()) {
                    try {
                        writer.write(item.toLineString());
                        writer.write(Constants.LINE_SEPARATOR);
                        return item;
                    } catch (final IOException e) {
                        throw new DictionaryException("Failed to write: " + item, e);
                    }
                }
                return null;
            }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  6. cmd/local-locker.go

    				// Check same i
    			} else {
    				if lri.Writer {
    					writers++
    				} else {
    					readers++
    				}
    				// Move to next
    				i++
    			}
    		}
    		if modified {
    			l.lockMap[k] = lris
    		}
    	}
    	t := time.Now()
    	l.lastCleanup.Store(&t)
    	l.readers.Store(readers)
    	l.writers.Store(writers)
    }
    
    func newLocker() *localLocker {
    	return &localLocker{
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/dict/protwords/ProtwordsFile.java

                    throw new DictionaryException("Failed to write: " + oldItem + " -> " + item, e);
                }
            }
    
            /**
             * Writes a string line to the temporary file.
             * @param line the line to write
             */
            public void write(final String line) {
                try {
                    writer.write(line);
                    writer.write(Constants.LINE_SEPARATOR);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/dict/synonym/SynonymFile.java

                if (item != null && item.isUpdated()) {
                    try {
                        writer.write(item.toLineString());
                        writer.write(Constants.LINE_SEPARATOR);
                        return item;
                    } catch (final IOException e) {
                        throw new DictionaryException("Failed to write: " + item, e);
                    }
                }
                return null;
            }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/com/SmbComFindClose2Test.java

        }
    
        @Test
        void testWriteParameterWordsWireFormatLittleEndian() {
            byte[] dst = new byte[2];
            int written = instance.writeParameterWordsWireFormat(dst, 0);
            assertEquals(2, written, "writeParameterWordsWireFormat should write exactly 2 bytes");
            // SMBUtil.writeInt2 writes the low byte first (little‑endian)
            assertEquals((byte) (TEST_SID & 0xFF), dst[0]);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbComCloseTest.java

            SmbComClose close = new SmbComClose(fid, lastWriteTime);
            byte[] buffer = new byte[10];
            int written = close.writeParameterWordsWireFormat(buffer, 0);
            assertEquals(6, written, "writeParameterWordsWireFormat should return 6");
            // Only compare the first 6 bytes that were actually written
            byte[] actualWritten = new byte[6];
            System.arraycopy(buffer, 0, actualWritten, 0, 6);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.8K bytes
    - Viewed (0)
Back to top