- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for getFiles (0.24 sec)
-
guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java
} File file = out.getFile(); assertNull(file); // Write data to go over the threshold if (chunk2 > 0) { if (JAVA_IO_TMPDIR.value().equals("/sdcard")) { assertThrows(IOException.class, () -> write(out, data, chunk1, chunk2, singleByte)); return; } write(out, data, chunk1, chunk2, singleByte); file = out.getFile(); assertEquals(dataSize, file.length());
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 5.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/FileBackedOutputStreamAndroidIncompatibleTest.java
byte[] data = newPreFilledByteArray(100); FileBackedOutputStream out = new FileBackedOutputStream(0, true); write(out, data, 0, 100, true); final File file = out.getFile(); assertEquals(100, file.length()); assertTrue(file.exists()); out.close(); // Make sure that finalize deletes the file out = null; // times out and throws RuntimeException on failure
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Jun 08 21:20:23 GMT 2023 - 1.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/SourceSinkTester.java
this.caseDesc = checkNotNull(caseDesc); } @Override public String getName() { return super.getName() + " [" + suiteName + " [" + caseDesc + "]]"; } protected static ImmutableList<String> getLines(final String string) { try { return new CharSource() { @Override public Reader openStream() throws IOException { return new StringReader(string); } }.readLines();
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Apr 27 18:57:08 GMT 2022 - 4.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharSinkTester.java
public CharSinkTester( CharSinkFactory factory, String string, String suiteName, String caseDesc, Method method) { super(factory, string, suiteName, caseDesc, method); this.lines = getLines(string); this.expectedLines = getLines(expected); } @Override protected void setUp() throws Exception { this.sink = factory.createSink(); } public void testOpenStream() throws IOException {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 4K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/SourceSinkFactories.java
protected File createFile() throws IOException { File file = File.createTempFile("SinkSourceFile", "txt"); fileThreadLocal.set(file); return file; } protected File getFile() { return fileThreadLocal.get(); } public final void tearDown() throws IOException { if (!fileThreadLocal.get().delete()) {
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Thu Sep 09 17:57:59 GMT 2021 - 17.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FileBackedOutputStreamAndroidIncompatibleTest.java
byte[] data = newPreFilledByteArray(100); FileBackedOutputStream out = new FileBackedOutputStream(0, true); write(out, data, 0, 100, true); final File file = out.getFile(); assertEquals(100, file.length()); assertTrue(file.exists()); out.close(); // Make sure that finalize deletes the file out = null; // times out and throws RuntimeException on failure
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Jun 08 21:20:23 GMT 2023 - 1.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharSourceTester.java
public CharSourceTester( CharSourceFactory factory, String string, String suiteName, String caseDesc, Method method) { super(factory, string, suiteName, caseDesc, method); this.expectedLines = getLines(expected); } @Override protected void setUp() throws Exception { this.source = factory.createSource(data); } public void testOpenStream() throws IOException {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 6.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/SourceSinkTester.java
this.caseDesc = checkNotNull(caseDesc); } @Override public String getName() { return super.getName() + " [" + suiteName + " [" + caseDesc + "]]"; } protected static ImmutableList<String> getLines(final String string) { try { return new CharSource() { @Override public Reader openStream() throws IOException { return new StringReader(string); } }.readLines();
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Apr 27 18:57:08 GMT 2022 - 4.9K bytes - Viewed (0) -
android/guava/src/com/google/common/io/FileBackedOutputStream.java
return buf; } int getCount() { return count; } } /** Returns the file holding the data (possibly null). */ @VisibleForTesting @CheckForNull synchronized File getFile() { return file; } /** * Creates a new instance that uses the given file threshold, and does not reset the data when the * {@link ByteSource} returned by {@link #asByteSource} is finalized. *
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 22 17:40:56 GMT 2024 - 8.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/MoreFilesTest.java
NoSuchFileException expected = assertThrows( NoSuchFileException.class, () -> MoreFiles.deleteRecursively(fs.getPath("/work/nothere"), ALLOW_INSECURE)); assertThat(expected.getFile()).isEqualTo("/work/nothere"); } } public void testDeleteDirectoryContents_symlinkToDir_sdsNotSupported_allowInsecure() throws IOException { try (FileSystem fs = newTestFileSystem()) {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Jan 29 22:57:05 GMT 2024 - 27.2K bytes - Viewed (0)