- Sort Score
- Num 10 results
- Language All
Results 151 - 160 of 1,976 for throws (0.04 seconds)
-
guava-tests/test/com/google/common/io/CharSourceTest.java
} public void testCopyTo_appendable() throws IOException { StringBuilder builder = new StringBuilder(); assertEquals(STRING.length(), source.copyTo(builder)); assertTrue(source.wasStreamOpened() && source.wasStreamClosed()); assertEquals(STRING, builder.toString()); } public void testCopyTo_charSink() throws IOException { TestCharSink sink = new TestCharSink();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 11.5K bytes - Click Count (0) -
guava/src/com/google/common/io/Files.java
* * @param file the file to read from * @return a byte array containing all the bytes from file * @throws IllegalArgumentException if the file is bigger than the largest possible byte array * (2^31 - 1) * @throws IOException if an I/O error occurs */ public static byte[] toByteArray(File file) throws IOException { return asByteSource(file).read(); } /**
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Sep 25 20:24:13 GMT 2025 - 32.8K bytes - Click Count (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenPropertiesLoader.java
public static void loadProperties( java.util.Properties properties, Path path, UnaryOperator<String> callback, boolean escape) throws IOException { MavenProperties sp = new MavenProperties(false); if (Files.exists(path)) { sp.load(path); } properties.forEach(Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jan 24 17:29:44 GMT 2025 - 6.5K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/Source.java
* The caller is responsible for closing the returned stream. * * @return a new input stream positioned at the start of the content * @throws IOException if the stream cannot be created or opened */ @Nonnull InputStream openStream() throws IOException; /** * Returns a human-readable description of where this source came from, * used primarily for error messages and debugging. * <p>Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Jan 29 09:46:53 GMT 2025 - 4K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java
throws InterruptedException { Preconditions.checkNotNull(tasks, "tasks must not be null!"); return delegate.invokeAll(tasks); } @Override public <T> List<Future<T>> invokeAll( Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:37:28 GMT 2025 - 6.5K bytes - Click Count (0) -
guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java
throws InterruptedException { Preconditions.checkNotNull(tasks, "tasks must not be null!"); return delegate.invokeAll(tasks); } @Override public <T> List<Future<T>> invokeAll( Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:37:28 GMT 2025 - 6.5K bytes - Click Count (0) -
compat/maven-settings-builder/src/main/java/org/apache/maven/settings/building/SettingsBuilder.java
* @return The result of the settings building, never {@code null}. * @throws SettingsBuildingException If the effective settings could not be built. */ SettingsBuildingResult build(SettingsBuildingRequest request) throws SettingsBuildingException;Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 1.6K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/plugin/MojosExecutionStrategy.java
* @param mojoExecutionRunner mojo execution task which must be invoked by a strategy to actually run it * @throws LifecycleExecutionException */ void execute(List<MojoExecution> mojos, MavenSession session, MojoExecutionRunner mojoExecutionRunner) throws LifecycleExecutionException;Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 1.7K bytes - Click Count (0) -
android/guava/src/com/google/common/io/LittleEndianDataOutputStream.java
} @Override public void write(byte[] b, int off, int len) throws IOException { // Override slow FilterOutputStream impl out.write(b, off, len); } @Override public void writeBoolean(boolean v) throws IOException { ((DataOutputStream) out).writeBoolean(v); } @Override public void writeByte(int v) throws IOException { ((DataOutputStream) out).writeByte(v); } /**
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 5.1K bytes - Click Count (0) -
guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java
if (first.equals(TwoArg.Action.THROW_A_NPE)) { verifyBarPass(method, bar); // only pass if 1st param throws NPE } else { verifyBarFail(method, bar); } } } } public void testTwoArgNullableNormal() throws Exception { Method method = TwoArg.class.getMethod("nullableNormal", String.class, Integer.class);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 18:44:53 GMT 2025 - 47.8K bytes - Click Count (0)