- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 64 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) -
common/scripts/fix_copyright_banner.sh
WD=$(dirname "$0") WD=$(cd "$WD"; pwd) for fn in "$@"; do if ! grep -L -q -e "Apache License, Version 2" -e "Copyright" "${fn}"; then if [[ "${fn}" == *.go || "${fn}" == *.rs ]]; then newfile=$(cat "${WD}/copyright-banner-go.txt" "${fn}") echo "${newfile}" > "${fn}" echo "Fixing license: ${fn}" else echo "Cannot fix license: ${fn}. Unknown file type" fi fi
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Nov 17 04:35:57 UTC 2022 - 1.3K 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)