- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 27 for CloseableUtil (0.31 seconds)
-
src/main/java/org/codelibs/core/io/CloseableUtil.java
/** * Utility class for {@link Closeable} operations. * * @author koichik */ public abstract class CloseableUtil { /** * Do not instantiate. */ protected CloseableUtil() { } private static final Logger logger = Logger.getLogger(CloseableUtil.class); /** * Closes a {@link Closeable}. * <p>Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 2.5K bytes - Click Count (0) -
README.md
- **Type safety** - Extensive use of generics and null-safe operations throughout the API - **Resource management** - Proper handling of resources with utilities like `CloseableUtil` and `DisposableUtil` ### Key Architectural Patterns - **Factory Pattern** - `BeanDescFactory` for creating bean descriptors, `ParameterizedClassDescFactory` for generic type handling
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sun Aug 31 02:56:02 GMT 2025 - 12.7K bytes - Click Count (0) -
src/main/java/org/codelibs/core/io/CopyUtil.java
final FileOutputStream os = OutputStreamUtil.create(out); try { return copyInternal(is, os); } finally { CloseableUtil.close(os); } } finally { CloseableUtil.close(is); } } /** * Copies from a file with the specified encoding to a file with the platform default encoding. *
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 45.2K bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/gcs/GcsClient.java
} } } catch (final CrawlerSystemException e) { CloseableUtil.closeQuietly(responseData); throw e; } catch (final Exception e) { CloseableUtil.closeQuietly(responseData); throw new CrawlingAccessException("Could not access " + uri, e); } return responseData; }Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Thu Dec 11 08:38:29 GMT 2025 - 17.5K bytes - Click Count (0) -
src/main/java/org/codelibs/core/net/MimeTypeUtil.java
import java.io.IOException; import java.io.InputStream; import java.net.URLConnection; import org.codelibs.core.exception.IORuntimeException; import org.codelibs.core.io.CloseableUtil; import org.codelibs.core.io.ResourceUtil; /** * Utility class for MIME types. * * @author shot */ public abstract class MimeTypeUtil { /** * Do not instantiate. */Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 1.9K bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/fs/FileSystemClient.java
responseData.setContentLength(0); } } catch (final CrawlerSystemException e) { CloseableUtil.closeQuietly(responseData); throw e; } catch (final Exception e) { CloseableUtil.closeQuietly(responseData); throw new CrawlingAccessException("Could not access " + uri, e); } return responseData; }
Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Sun Nov 23 12:19:14 GMT 2025 - 15.1K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/helper/ProcessHelper.java
import java.util.concurrent.TimeUnit; import java.util.function.Consumer; import org.apache.commons.io.IOUtils; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.codelibs.core.io.CloseableUtil; import org.codelibs.fess.Constants; import org.codelibs.fess.exception.JobNotFoundException; import org.codelibs.fess.exception.JobProcessingException; import org.codelibs.fess.util.InputStreamThread;
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Nov 20 06:54:47 GMT 2025 - 10.9K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/thumbnail/impl/CommandGenerator.java
try { CloseableUtil.closeQuietly(p.getInputStream()); } catch (final Exception e) { logger.warn("Could not close a process input stream.", e); } }); CommonPoolUtil.execute(() -> { try { CloseableUtil.closeQuietly(p.getErrorStream());Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jan 01 12:47:47 GMT 2026 - 16.6K bytes - Click Count (0) -
src/main/java/org/codelibs/core/io/PropertiesUtil.java
try { props.load(reader); } catch (final IOException e) { throw new IORuntimeException(e); } finally { CloseableUtil.close(reader); } } /** * Loads the specified file into the {@link Properties} using the platform default encoding (wraps exception handling). * * @param propsCreated: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 7.9K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/dict/mapping/CharMappingFile.java
import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.codelibs.core.io.CloseableUtil; import org.codelibs.core.lang.StringUtil; import org.codelibs.curl.CurlResponse; import org.codelibs.fess.Constants; import org.codelibs.fess.dict.DictionaryException; import org.codelibs.fess.dict.DictionaryFile;
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Dec 20 05:56:45 GMT 2025 - 15.3K bytes - Click Count (0)