- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for OutputStreamUtil (0.66 sec)
-
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);Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 45.2K bytes - Viewed (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); } }Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 13.1K bytes - Viewed (0)