- Sort Score
- Num 10 results
- Language All
Results 1571 - 1580 of 3,637 for throwIf (0.07 seconds)
-
android/guava/src/com/google/common/io/Resources.java
/** * Reads all bytes from a URL into a byte array. * * @param url the URL to read from * @return a byte array containing all the bytes from the URL * @throws IOException if an I/O error occurs */ public static byte[] toByteArray(URL url) throws IOException { return asByteSource(url).read(); } /** * Reads all characters from a URL into a {@link String}, using the given character set. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 7.4K bytes - Click Count (0) -
src/main/java/jcifs/SmbFileHandle.java
* * @param lastWriteTime the last write time to set, or 0 to leave unchanged * @throws CIFSException if an error occurs while closing the file */ void close(long lastWriteTime) throws CIFSException; /** * {@inheritDoc} * * @see java.lang.AutoCloseable#close() */ @Override void close() throws CIFSException; /** * Releases this file handle without closing it *Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/ByteStreamsTest.java
private static final byte[] PRE_FILLED_100 = newPreFilledByteArray(100); public void testToByteArray() throws IOException { InputStream in = new ByteArrayInputStream(PRE_FILLED_100); byte[] b = ByteStreams.toByteArray(in); assertThat(b).isEqualTo(PRE_FILLED_100); } public void testToByteArray_emptyStream() throws IOException { InputStream in = newTestStream(0); byte[] b = ByteStreams.toByteArray(in);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 22K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/Lookup.java
* @throws LookupException if there is some provisioning related issue. */ @Nonnull <T> List<T> lookupList(Class<T> type); /** * Performs a collection lookup for given typed components. * * @param type The component type. * @return The map of components. The map may be empty if no components found. * @param <T> The component type.Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jan 10 12:55:54 GMT 2024 - 3.3K bytes - Click Count (0) -
src/test/java/org/codelibs/core/io/SerializeUtilTest.java
/** * @throws Exception */ public void testSerialize() throws Exception { final String[] a = new String[] { "1", "2" }; final String[] b = (String[]) SerializeUtil.serialize(a); assertEquals("1", b.length, a.length); assertEquals("2", "1", b[0]); assertEquals("3", "2", b[1]); } /** * @throws Exception */Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 7.6K bytes - Click Count (0) -
src/test/java/org/codelibs/core/io/ResourceBundleUtilTest.java
} /** * @throws Exception */ @Test public void testGetBundle() throws Exception { final ResourceBundle bundle = ResourceBundleUtil.getBundle("CLMessages", null, this.getClass().getClassLoader()); assertThat(bundle, is(notNullValue())); } /** * @throws Exception */ @Test public void testGetString() throws Exception {Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 1.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java
void testGetLastAccessTime() { assertEquals(0L, fileStandardInfo.getLastAccessTime()); } @Test @DisplayName("Test getSize returns endOfFile value") void testGetSize() throws SMBProtocolDecodingException { // Prepare test data byte[] buffer = new byte[22]; long expectedAllocationSize = 1024L; long expectedEndOfFile = 512L; int expectedNumberOfLinks = 3;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/filter/CorsFilterTest.java
mockRequest.setHeader("Origin", " "); corsFilter.doFilter(mockRequest, mockResponse, mockFilterChain); assertTrue(mockFilterChain.wasDoFilterCalled()); assertFalse(corsHandlerFactory.wasGetCalled()); } // Test with valid Origin but no CorsHandler found @Test
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 21 06:04:58 GMT 2026 - 22.6K bytes - Click Count (0) -
src/test/java/org/codelibs/core/collection/IndexedIteratorTest.java
import java.io.StringReader; import java.util.List; import org.junit.Test; /** * @author wyukawa * */ public class IndexedIteratorTest { /** * @throws Exception */ @Test public void test() throws Exception { final List<String> list = newArrayList(); list.add("aaa"); list.add("bbb"); list.add("ccc");Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 2.7K bytes - Click Count (0) -
compat/maven-model/src/main/java/org/apache/maven/model/io/xpp3/MavenXpp3ReaderEx.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 2.8K bytes - Click Count (0)