public class TStreamWriterHelper
extends java.lang.Object
Constructor and Description |
---|
TStreamWriterHelper(java.io.Writer writer)
Initialzes the handler with the given character output stream..
|
Modifier and Type | Method and Description |
---|---|
java.io.Writer |
getWriter()
Gets the Writer on which events can be written to.
|
void |
setWriter(java.io.Writer writer)
Sets a new Writer on which events can be written to.
|
void |
write(char[] ch,
int start,
int length)
Write the given character array as indicated by start and length to the Writer.
|
void |
write(java.lang.String str)
Write the given String to the Writer.
|
void |
writeWithPredefinedEntities(char[] ch,
int start,
int length)
Write the given character array as indicated by start and length to the Writer
and replaces special characters with the predefined entities.
|
void |
writeWithPredefinedEntities(java.lang.String string)
Write the given string to the Writer and replaces special characters with the predefined entities.
|
public TStreamWriterHelper(java.io.Writer writer)
public void setWriter(java.io.Writer writer)
public java.io.Writer getWriter()
public void write(java.lang.String str) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void write(char[] ch, int start, int length) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void writeWithPredefinedEntities(java.lang.String string) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void writeWithPredefinedEntities(char[] ch, int start, int length) throws org.xml.sax.SAXException
org.xml.sax.SAXException
Copyright (c) 2017 Software AG. All Rights Reserved.