- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for OutputStreamUtil (0.17 seconds)
-
src/main/java/org/codelibs/core/io/OutputStreamUtil.java
import org.codelibs.core.exception.IORuntimeException; /** * Utility class for {@link OutputStream} operations. * * @author shot */ public abstract class OutputStreamUtil { /** * Do not instantiate. */ protected OutputStreamUtil() { } /** * Creates a {@link FileOutputStream}. * * @param file the file (must not be {@literal null})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) -
src/main/java/org/codelibs/core/io/CopyUtil.java
*/ public static int copy(final InputStream in, final File out) { assertArgumentNotNull("in", in); assertArgumentNotNull("out", out); final FileOutputStream os = OutputStreamUtil.create(out); try { if (in instanceof FileInputStream) { return copyInternal((FileInputStream) in, os); } return copyInternal(wrap(in), os);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) -
src/main/java/org/codelibs/core/io/FileUtil.java
* @param bytes * The byte array to write. */ public static void writeBytes(final String pathname, final byte[] bytes) { try (FileOutputStream fos = OutputStreamUtil.create(new File(pathname))) { ChannelUtil.write(fos.getChannel(), ByteBuffer.wrap(bytes)); } catch (final IOException e) { throw new IORuntimeException(e); } }Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Feb 12 12:10:45 GMT 2026 - 13.2K bytes - Click Count (0)