- Sort Score
- Result 10 results
- Languages All
Results 2231 - 2240 of 2,652 for throw (0.42 sec)
-
fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/entity/OpenSearchUrlQueue.java
public static final String CREATE_TIME = "createTime"; public static final String WEIGHT = "weight"; @Override public XContentBuilder toXContent(final XContentBuilder builder, final Params params) throws IOException { builder.startObject(); if (sessionId != null) { builder.field(SESSION_ID, sessionId); } if (method != null) { builder.field(METHOD, method);
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Nov 07 04:44:10 UTC 2024 - 2.2K bytes - Viewed (0) -
android/guava/src/com/google/common/io/LineReader.java
* line-termination characters, or {@code null} if the end of the stream has been reached. * @throws IOException if an I/O error occurs */ @CanIgnoreReturnValue // to skip a line @CheckForNull public String readLine() throws IOException { while (lines.peek() == null) { Java8Compatibility.clear(cbuf);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed May 17 14:35:11 UTC 2023 - 3.1K bytes - Viewed (0) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/model/SimpleClassMetaDataRepositoryTest.groovy
given: repository.put('unkown', new TestDomainObject('unknown')) when: repository.get('unknown') then: UnknownDomainObjectException e = thrown() e.message == 'No meta-data is available for class \'unknown\'. Did you mean? [unkown]' } def getFailsForWrongPackage() { given:
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Sat Apr 06 02:21:33 UTC 2024 - 3.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/RandomAmountInputStream.java
public RandomAmountInputStream(InputStream in, Random random) { super(checkNotNull(in)); this.random = checkNotNull(random); } @Override public int read(byte[] b, int off, int len) throws IOException { return super.read(b, off, random.nextInt(len) + 1); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 1.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/TestCharSource.java
return byteSource.wasStreamOpened(); } @Override public boolean wasStreamClosed() { return byteSource.wasStreamClosed(); } @Override public Reader openStream() throws IOException { return new InputStreamReader(byteSource.openStream(), UTF_8); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 1.4K bytes - Viewed (0) -
README.md
Get a URL --------- This program downloads a URL and prints its contents as a string. [Full source][get_example]. ```java OkHttpClient client = new OkHttpClient(); String run(String url) throws IOException { Request request = new Request.Builder() .url(url) .build(); try (Response response = client.newCall(request).execute()) { return response.body().string(); } } ```
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Dec 20 23:27:07 UTC 2023 - 6.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/ValueGraphTest.java
} @Test public void edgeValue_undirected_mismatch() { graph = ValueGraphBuilder.undirected().build(); graph.putEdgeValue(1, 2, "A"); // Check that edgeValue() throws on each possible ordering of an ordered EndpointPair IllegalArgumentException e = assertThrows( IllegalArgumentException.class, () -> graph.edgeValue(EndpointPair.ordered(1, 2)));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 06 18:35:19 UTC 2024 - 20K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/LongAdder.java
@Override public double doubleValue() { return (double) sum(); } private void writeObject(ObjectOutputStream s) throws IOException { s.defaultWriteObject(); s.writeLong(sum()); } private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); busy = 0; cells = null; base = s.readLong(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 15 18:00:07 UTC 2021 - 5.5K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/impl/MimeTypeHelperImplTest.java
private StandardCrawlerContainer container; @Override protected void setUp() throws Exception { super.setUp(); container = new StandardCrawlerContainer().singleton("mimeTypeHelper", MimeTypeHelperImpl.class); } public void test_getContentType_filenameFirst() throws IOException { final MimeTypeHelperImpl mimeTypeHelper = container.getComponent("mimeTypeHelper");
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 11.6K bytes - Viewed (0) -
compat/maven-plugin-api/src/test/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilderTest.java
*/ class PluginDescriptorBuilderTest { private PluginDescriptor build(String resource) throws IOException, PlexusConfigurationException { try (InputStream is = getClass().getResourceAsStream(resource)) { return new PluginDescriptorBuilder().build(is, null); } } @Test void testBuildReader() throws Exception { PluginDescriptor pd = build("/plugin.xml");
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.4K bytes - Viewed (0)