All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.spun.util.logger.Outputable Maven / Gradle / Ivy

There is a newer version: 24.9.0
Show newest version
package com.spun.util.logger;

import com.spun.util.ObjectUtils;

import java.io.IOException;

public class Outputable implements Output
{
  private Appendable out;
  public Outputable(Appendable out)
  {
    this.out = out;
  }
  @Override
  public Output append(CharSequence text)
  {
    try
    {
      out.append(text);
    }
    catch (IOException e)
    {
      throw ObjectUtils.throwAsError(e);
    }
    return this;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy