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

org.mvel2.templates.util.io.StringAppenderStream Maven / Gradle / Ivy

Go to download

TBEL is a powerful expression language for ThingsBoard platform user-defined functions. Original implementation is based on MVEL.

The newest version!
package org.mvel2.templates.util.io;

import org.mvel2.templates.util.TemplateOutputStream;
import org.mvel2.util.StringAppender;

public class StringAppenderStream implements TemplateOutputStream {
  private StringAppender appender;

  public StringAppenderStream(StringAppender appender) {
    this.appender = appender;
  }

  public TemplateOutputStream append(CharSequence c) {
    appender.append(c);
    return this;
  }

  public TemplateOutputStream append(char[] c) {
    appender.append(c);
    return this;
  }

  @Override
  public String toString() {
    return appender.toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy