// Path: public-java/io/iamcontent-io-core/src/main/java/com/iamcontent/io/IORuntimeException.java
// public class IORuntimeException extends RuntimeException {
// 
// 	public IORuntimeException(String message) {
// 		super(message);
// 	}
// 
// 	public IORuntimeException(Throwable cause) {
// 		super(cause);
// 	}
// 	
// 	private static final long serialVersionUID = 1L;
// }


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.stream.Stream;
import com.iamcontent.io.IORuntimeException;

/**
  IAmContent Public Libraries.
  Copyright (C) 2015-2021 Greg Elderfield
  @author Greg Elderfield, support@jarchitect.co.uk
 
  This program is free software; you can redistribute it and/or modify it under the terms of the
  GNU General Public License as published by the Free Software Foundation; either version 2 of 
  the License, or (at your option) any later version.

  This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
  without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  See the GNU General Public License for more details.

  You should have received a copy of the GNU General Public License along with this program;
  if not, write to the Free Software Foundation, Inc., 
  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
package com.iamcontent.io.util;



/**
 * Common I/O utilities.
 * @author Greg Elderfield
 */
public class IOUtils {

	/**
	 * Appends the given String to the given Appendable.
	 * @throws IORuntimeException, which is unchecked,  if an {@link IOException} is thrown.
	 */
	public static void appendQuietly(Appendable out, String s) {
		try {
			out.append(s);
		} catch (IOException e) {

// Path: public-java/io/iamcontent-io-core/src/main/java/com/iamcontent/io/IORuntimeException.java
// public class IORuntimeException extends RuntimeException {
// 
// 	public IORuntimeException(String message) {
// 		super(message);
// 	}
// 
// 	public IORuntimeException(Throwable cause) {
// 		super(cause);
// 	}
// 	
// 	private static final long serialVersionUID = 1L;
// }


// Path: public-java/io/iamcontent-io-core/src/main/java/com/iamcontent/io/util/IOUtils.java
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.stream.Stream;
import com.iamcontent.io.IORuntimeException;

/**
  IAmContent Public Libraries.
  Copyright (C) 2015-2021 Greg Elderfield
  @author Greg Elderfield, support@jarchitect.co.uk
 
  This program is free software; you can redistribute it and/or modify it under the terms of the
  GNU General Public License as published by the Free Software Foundation; either version 2 of 
  the License, or (at your option) any later version.

  This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
  without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  See the GNU General Public License for more details.

  You should have received a copy of the GNU General Public License along with this program;
  if not, write to the Free Software Foundation, Inc., 
  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
package com.iamcontent.io.util;



/**
 * Common I/O utilities.
 * @author Greg Elderfield
 */
public class IOUtils {

	/**
	 * Appends the given String to the given Appendable.
	 * @throws IORuntimeException, which is unchecked,  if an {@link IOException} is thrown.
	 */
	public static void appendQuietly(Appendable out, String s) {
		try {
			out.append(s);
		} catch (IOException e) {

			throw new IORuntimeException(e);
