- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 58 for newFile (0.09 sec)
-
guava-tests/test/com/google/common/io/FilesFileTraverserTest.java
public void testFileTraverser_multipleDirectoryLayers_breadthFirstStartsWithTopLayer() throws Exception { File fileA = newFile("file-a"); File dir1 = newDir("dir-1"); newFile("dir-1/file-b"); newFile("dir-1/dir-2"); assertThat(Iterables.limit(Files.fileTraverser().breadthFirst(rootDir), 3)) .containsExactly(rootDir, fileA, dir1); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Apr 21 20:17:27 UTC 2023 - 3.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/mapping/CharMappingFile.java
protected File newFile; protected Writer writer; protected CharMappingItem item; protected MappingUpdater(final CharMappingItem newItem) { try { newFile = ComponentUtil.getSystemHelper().createTempFile(MAPPING, ".txt"); writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(newFile), Constants.UTF_8));
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:11:58 UTC 2024 - 10.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/protwords/ProtwordsFile.java
protected File newFile; protected Writer writer; protected ProtwordsItem item; protected ProtwordsUpdater(final ProtwordsItem newItem) { try { newFile = ComponentUtil.getSystemHelper().createTempFile(PROTWORDS, ".txt"); writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(newFile), Constants.UTF_8));
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:11:58 UTC 2024 - 9.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/stopwords/StopwordsFile.java
protected File newFile; protected Writer writer; protected StopwordsItem item; protected SynonymUpdater(final StopwordsItem newItem) { try { newFile = ComponentUtil.getSystemHelper().createTempFile(STOPWORDS, ".txt"); writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(newFile), Constants.UTF_8));
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:11:58 UTC 2024 - 9.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/kuromoji/KuromojiFile.java
protected File newFile; protected Writer writer; protected KuromojiItem item; protected KuromojiUpdater(final KuromojiItem newItem) { try { newFile = ComponentUtil.getSystemHelper().createTempFile(KUROMOJI, ".txt"); writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(newFile), Constants.UTF_8));
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:11:58 UTC 2024 - 9.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/stemmeroverride/StemmerOverrideFile.java
} catch (final Exception e) { if (newFile != null) { newFile.delete(); } throw new DictionaryException("Failed to write a userDict file.", e); } item = newItem; } public StemmerOverrideItem write(final StemmerOverrideItem oldItem) { try {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:11:58 UTC 2024 - 10.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/synonym/SynonymFile.java
protected File newFile; protected Writer writer; protected SynonymItem item; protected SynonymUpdater(final SynonymItem newItem) { try { newFile = ComponentUtil.getSystemHelper().createTempFile(SYNONYM, ".txt"); writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(newFile), Constants.UTF_8));
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:11:58 UTC 2024 - 12.5K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/PropertiesUtilTest.java
public void testStorePropertiesOutputStreamString() throws IOException { final Properties outProperties = new Properties(); outProperties.setProperty("a", "A"); final File file = tempFolder.newFile("hoge.properties"); final FileOutputStream outputStream = OutputStreamUtil.create(file); PropertiesUtil.store(outProperties, outputStream, "comments"); CloseableUtil.close(outputStream);
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 9.6K bytes - Viewed (0) -
internal/logger/logrotate.go
Level: ErrorKind, Message: msg, Time: time.Now().UTC(), Trace: &log.Trace{Message: msg}, }) } } path := filepath.Join(w.opts.Directory, w.opts.FileNameFunc()) f, err := newFile(path) if err != nil { return fmt.Errorf("unable to create new file at %v: %w", path, err) } w.f = f return nil }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5.8K bytes - Viewed (0) -
internal/lock/lock_windows.go
accessAttr := uint32(syscall.FILE_ATTRIBUTE_NORMAL | 0x80000000) fd, err := syscall.CreateFile(pathp, access, shareflag, nil, createflag, accessAttr, 0) if err != nil { return nil, err } return os.NewFile(uintptr(fd), path), nil } func lockFile(fd syscall.Handle, flags uint32) error { // https://msdn.microsoft.com/en-us/library/windows/desktop/aa365203(v=vs.85).aspx if fd == syscall.InvalidHandle { return nil
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Oct 18 18:08:15 UTC 2023 - 7.9K bytes - Viewed (0)