- Sort Score
- Result 10 results
- Languages All
Results 841 - 850 of 1,808 for try (0.01 sec)
-
src/main/java/org/codelibs/fess/score/ScoreUpdater.java
* @return The result of the execution. */ public String execute() { final StringBuilder resultBuf = new StringBuilder(); scoreBoosterList.forEach(b -> { try { final long count = b.process(); resultBuf.append(b.getClass().getSimpleName()).append(" : ").append(count).append('\n'); } catch (final Exception e) {Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 2K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/AsynchronousGet.java
@Override public void onFailure(Call call, IOException e) { e.printStackTrace(); } @Override public void onResponse(Call call, Response response) throws IOException { try (ResponseBody responseBody = response.body()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); Headers responseHeaders = response.headers();
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun May 22 01:29:42 UTC 2016 - 1.9K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/ParseResponseWithMoshi.java
public void run() throws Exception { Request request = new Request.Builder() .url("https://api.github.com/gists/c2a7c39532239ff261be") .build(); try (Response response = client.newCall(request).execute()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); Gist gist = gistJsonAdapter.fromJson(response.body().source());
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun May 22 01:29:42 UTC 2016 - 1.8K bytes - Viewed (0) -
src/main/java/org/codelibs/core/net/UuidUtil.java
StringUtil.appendHex(buf, lowTime); StringUtil.appendHex(buf, RANDOM.nextInt()); return buf.toString(); } private static byte[] getAddress() { try { return InetAddress.getLocalHost().getAddress(); } catch (final UnknownHostException ignore) { return DEFAULT_ADDRESS; } }
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 1.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/xml/DocumentBuilderUtil.java
*/ public static Document parse(final DocumentBuilder builder, final InputStream is) { assertArgumentNotNull("builder", builder); assertArgumentNotNull("is", is); try { return builder.parse(is); } catch (final SAXException e) { throw new SAXRuntimeException(e); } catch (final IOException e) { throw new IORuntimeException(e); }Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 1.8K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/MsWordExtractorTest.java
CloseableUtil.closeQuietly(in); logger.info(content); assertTrue(content.contains("ใในใ")); } public void test_getText_null() { try { msWordExtractor.getText(null, null); fail(); } catch (final CrawlerSystemException e) { // NOP } }
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sat Mar 15 06:52:00 UTC 2025 - 2.1K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/MsPublisherExtractor.java
@Override public ExtractData getText(final InputStream in, final Map<String, String> params) { if (in == null) { throw new CrawlerSystemException("The inputstream is null."); } try { @SuppressWarnings("resource") final PublisherTextExtractor publisherTextExtractor = new PublisherTextExtractor(in); return new ExtractData(publisherTextExtractor.getText());Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 1.9K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/ConfigureTimeouts.java
} public void run() throws Exception { Request request = new Request.Builder() .url("http://httpbin.org/delay/2") // This URL is served with a 2 second delay. .build(); try (Response response = client.newCall(request).execute()) { System.out.println("Response completed: " + response); } } public static void main(String... args) throws Exception {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Sep 28 18:00:26 UTC 2019 - 1.5K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/SynchronousGet.java
public void run() throws Exception { Request request = new Request.Builder() .url("https://publicobject.com/helloworld.txt") .build(); try (Response response = client.newCall(request).execute()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); Headers responseHeaders = response.headers();
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun May 22 01:29:42 UTC 2016 - 1.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/ntlmssp/Type3Message.java
DEFAULT_USER = Config.getProperty("jcifs.smb1.smb.client.username", null); DEFAULT_PASSWORD = Config.getProperty("jcifs.smb1.smb.client.password", null); String defaultWorkstation = null; try { defaultWorkstation = NbtAddress.getLocalHost().getHostName(); } catch (final UnknownHostException ex) {} DEFAULT_WORKSTATION = defaultWorkstation;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 24.1K bytes - Viewed (0)