286N/A/*
286N/A * reserved comment block
286N/A * DO NOT REMOVE OR ALTER!
286N/A */
286N/A/*
286N/A * Copyright 2001-2004 The Apache Software Foundation.
286N/A *
286N/A * Licensed under the Apache License, Version 2.0 (the "License");
286N/A * you may not use this file except in compliance with the License.
286N/A * You may obtain a copy of the License at
286N/A *
286N/A * http://www.apache.org/licenses/LICENSE-2.0
286N/A *
286N/A * Unless required by applicable law or agreed to in writing, software
286N/A * distributed under the License is distributed on an "AS IS" BASIS,
286N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
286N/A * See the License for the specific language governing permissions and
286N/A * limitations under the License.
286N/A */
286N/A/*
286N/A * $Id: StringOutputBuffer.java,v 1.2.4.1 2005/09/06 11:36:16 pvedula Exp $
286N/A */
286N/A
286N/Apackage com.sun.org.apache.xalan.internal.xsltc.runtime.output;
286N/A
286N/A
286N/A/**
286N/A * @author Santiago Pericas-Geertsen
286N/A */
286N/Aclass StringOutputBuffer implements OutputBuffer {
286N/A private StringBuffer _buffer;
286N/A
286N/A public StringOutputBuffer() {
286N/A _buffer = new StringBuffer();
286N/A }
286N/A
286N/A public String close() {
286N/A return _buffer.toString();
286N/A }
286N/A
286N/A public OutputBuffer append(String s) {
286N/A _buffer.append(s);
286N/A return this;
286N/A }
286N/A
286N/A public OutputBuffer append(char[] s, int from, int to) {
286N/A _buffer.append(s, from, to);
286N/A return this;
286N/A }
286N/A
286N/A public OutputBuffer append(char ch) {
286N/A _buffer.append(ch);
286N/A return this;
286N/A }
286N/A}