public class XMLComment extends XMLNullDataElement
| Constructor and Description |
|---|
XMLComment(String text)
Comentários são criados apenas a partir da aplicação -- SAX não gera
eventos para comentários.
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(Writer stream,
String ident)
Escreve o comentário, com a identação corrente.
|
static void |
write(Writer stream,
String ident,
String text)
Escreve o comentário, com a identação corrente.
|
endTagwrite, write, write, writeEndTagappendValue, convertTextToXML, convertValueFromXML, getAppContextObject, getAppObject, getAttributeBooleanValue, getAttributeDoubleValue, getAttributeIntValue, getAttributes, getAttributeStrValue, getDoubleValue, getFloatValue, getIntValue, getLongValue, getStrValue, getStrValue, getTag, hasAttribute, hasValue, isEmpty, newAttribute, newAttribute, newAttribute, newAttribute, newAttribute, newAttribute, newAttributeList, newCharsEvent, resetAttributeList, resetValue, setAppContextObject, setAppObject, setTag, setValue, setValue, startTag, writeAttributes, writeAttributes, writeEndTag, writeEndTag, writeStartTag, writeStartTagln, writeValue, xmlEncodepublic XMLComment(String text)
text - texto associado ao comentáriopublic void write(Writer stream, String ident) throws IOException
write in interface XMLElementInterfacewrite in class XMLDataElementstream - stream de saídaident - identaçãoIOException - se houver problemas na escritapublic static void write(Writer stream, String ident, String text) throws IOException
stream - stream de saídaident - identaçãotext - texto do comentárioIOException - se houver problemas na escritaCopyright © 2016 Tecgraf/PUC-Rio. All rights reserved.