001package jmri.implementation;
002
003import jmri.JmriException;
004
005import javax.annotation.Nonnull;
006
007/**
008 * Base implementation of the StringIO interface.
009 *
010 * @author Bob Jacobsen  (C) 2024
011 */
012public class DefaultStringIO extends AbstractStringIO {
013
014    public DefaultStringIO(@Nonnull String systemName) {
015        super(systemName);
016    }
017
018    public DefaultStringIO(@Nonnull String systemName, String userName) {
019        super(systemName, userName);
020    }
021
022    /** {@inheritDoc} */ 
023    @Override
024    protected void sendStringToLayout(@Nonnull String value) throws JmriException {
025        // Only sets the known string and fires listeners.
026        setString(value);
027    }
028
029    /** {@inheritDoc} */ 
030    @Override
031    protected boolean cutLongStrings() {
032        return false;
033    }
034
035}