Search Options

Results per page
Sort
Preferred Languages
Advance

Results 911 - 920 of 1,922 for try (0.04 sec)

  1. 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 Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/entity/OpenSearchAccessResultData.java

            setTransformerName((String) src.get(TRANSFORMER_NAME));
            setEncoding((String) src.get(ENCODING));
            final String dataStr = (String) src.get(DATA);
            if (dataStr != null) {
                try {
                    setData(Base64Util.decode(dataStr));
                } catch (final Exception e) {
                    throw new OpenSearchAccessException("data: " + dataStr, e);
                }
            }
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. compat/maven-toolchain-builder/src/main/java/org/apache/maven/toolchain/io/DefaultToolchainsWriter.java

            Objects.requireNonNull(output, "output cannot be null");
            Objects.requireNonNull(toolchains, "toolchains cannot be null");
    
            try (Writer out = output) {
                new MavenToolchainsStaxWriter().write(out, toolchains.getDelegate());
            } catch (XMLStreamException e) {
                throw new IOException("Error writing toolchains", e);
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. docs_src/websockets/tutorial003_py39.py

    
    @app.get("/")
    async def get():
        return HTMLResponse(html)
    
    
    @app.websocket("/ws/{client_id}")
    async def websocket_endpoint(websocket: WebSocket, client_id: int):
        await manager.connect(websocket)
        try:
            while True:
                data = await websocket.receive_text()
                await manager.send_personal_message(f"You wrote: {data}", websocket)
                await manager.broadcast(f"Client #{client_id} says: {data}")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/es/log/exbhv/ClickLogBhv.java

            }
            return indexName;
        }
    
        @Override
        protected LocalDateTime toLocalDateTime(final Object value) {
            if (value != null) {
                try {
                    final Instant instant = Instant.from(DateTimeFormatter.ISO_INSTANT.parse(value.toString()));
                    return LocalDateTime.ofInstant(instant, ZoneId.systemDefault());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. samples/guide/src/main/java/okhttp3/guide/PostExample.java

      String post(String url, String json) throws IOException {
        RequestBody body = RequestBody.create(json, JSON);
        Request request = new Request.Builder()
            .url(url)
            .post(body)
            .build();
        try (Response response = client.newCall(request).execute()) {
          return response.body().string();
        }
      }
    
      String bowlingJson(String player1, String player2) {
        return "{'winCondition':'HIGH_SCORE',"
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Fri Apr 05 03:30:42 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/CheckHandshake.java

          .build();
    
      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);
    
          System.out.println(response.body().string());
        }
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/dcerpc/msrpc/SamrPolicyHandle.java

            this.handle = handle;
            if (server == null)
                server = "\\\\";
            MsrpcSamrConnect4 rpc = new MsrpcSamrConnect4(server, access, this);
            try {
                handle.sendrecv(rpc);
            } catch (DcerpcException de) {
                if (de.getErrorCode() != DcerpcError.DCERPC_FAULT_OP_RNG_ERROR)
                    throw de;
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 1.8K bytes
    - Viewed (0)
  9. samples/guide/src/main/java/okhttp3/recipes/Authenticate.java

            })
            .build();
      }
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("http://publicobject.com/secrets/hellosecret.txt")
            .build();
    
        try (Response response = client.newCall(request).execute()) {
          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
          System.out.println(response.body().string());
        }
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Aug 12 07:26:27 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/mylasta/direction/FessConfigImpl.java

                    return filterPropertyAsDefault(filteredValue); // not null here
                }
    
                private String getFromCache(final String propertyKey) {
                    try {
                        return cache.get(propertyKey,
                                () -> System.getProperty(Constants.FESS_CONFIG_PREFIX + propertyKey, super.get(propertyKey)));
                    } catch (final ExecutionException e) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top