package votorola.g.sql; import java.io.*; import votorola.g.lang.*; /** An XML column appender that sinks to a string builder. Therefore it throws no IO * exceptions, nor is it thread safe. */ public @ThreadRestricted final class XMLColumnBuilder extends XMLColumnAppender { /** Constructs an XMLColumnBuilder. * * @see #sink() */ public XMLColumnBuilder( StringBuilder _sink ) { super( _sink ); } // ------------------------------------------------------------------------------------ public @Override void appendAttribute( final String name, final String value ) { try{ super.appendAttribute( name, value ); } catch( IOException x ) { throw new IllegalStateException( x ); } // impossible } }