17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 */
21
22
23 package com.sun.org.apache.xml.internal.serialize;
24
25
26 import java.io.Writer;
27 import java.io.StringWriter;
28 import java.io.IOException;
29
30
31 /**
32 * Extends {@link Printer} and adds support for indentation and line
33 * wrapping.
34 *
35 * @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
36 *
37 * @deprecated As of JDK 1.9, Xerces 2.9.0, Xerces DOM L3 Serializer implementation
38 * is replaced by that of Xalan. Main class
39 * {@link com.sun.org.apache.xml.internal.serialize.DOMSerializerImpl} is replaced
40 * by {@link com.sun.org.apache.xml.internal.serializer.dom3.LSSerializerImpl}.
41 */
42 public class IndentPrinter
43 extends Printer
44 {
45
46
47 /**
48 * Holds the currently accumulating text line. This buffer will constantly
49 * be reused by deleting its contents instead of reallocating it.
50 */
51 private StringBuffer _line;
52
53
54 /**
55 * Holds the currently accumulating text that follows {@link #_line}.
56 * When the end of the part is identified by a call to {@link #printSpace}
57 * or {@link #breakLine}, this part is added to the accumulated line.
|
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 */
21
22
23 package com.sun.org.apache.xml.internal.serialize;
24
25
26 import java.io.Writer;
27 import java.io.StringWriter;
28 import java.io.IOException;
29
30
31 /**
32 * Extends {@link Printer} and adds support for indentation and line
33 * wrapping.
34 *
35 * @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
36 *
37 * @deprecated As of JDK 9, Xerces 2.9.0, Xerces DOM L3 Serializer implementation
38 * is replaced by that of Xalan. Main class
39 * {@link com.sun.org.apache.xml.internal.serialize.DOMSerializerImpl} is replaced
40 * by {@link com.sun.org.apache.xml.internal.serializer.dom3.LSSerializerImpl}.
41 */
42 public class IndentPrinter
43 extends Printer
44 {
45
46
47 /**
48 * Holds the currently accumulating text line. This buffer will constantly
49 * be reused by deleting its contents instead of reallocating it.
50 */
51 private StringBuffer _line;
52
53
54 /**
55 * Holds the currently accumulating text that follows {@link #_line}.
56 * When the end of the part is identified by a call to {@link #printSpace}
57 * or {@link #breakLine}, this part is added to the accumulated line.
|