org.dom4j.io.HTMLWriter.class Maven / Gradle / Ivy
The newest version!
???? /? \ ?
l ? ?
? \ ? ? \ ? \ ? \ ? \ ? \ ?
l ?
l ?
\ ?
h ?
l ? \ ?
? ? \ ? ? ? ?
? ?
? \ ?
l ?
? ?
\ ?
l ? ?
l ? ?
\ ?
? ?
$ ? \ ? ?
$ ?
\ ? 4
$
4
$
\ l ?
\
h
h
h
B
l
?
\!
h"
h#
h$
l%
&
B
B
B'
P(
?)
P*
P
h+
\,-
W ?
h.
h/
h01
\ ?
23
\4
\5
W6
789:;<=>
h?
h@A FormatState InnerClasses
lineSeparator Ljava/lang/String; DEFAULT_PREFORMATTED_TAGS Ljava/util/HashSet; DEFAULT_HTML_FORMAT Lorg/dom4j/io/OutputFormat; formatStack Ljava/util/Stack; lastText tagsOuput I newLineAfterNTags preformattedTags omitElementCloseSet (Ljava/io/Writer;)V Code LineNumberTable LocalVariableTable this Lorg/dom4j/io/HTMLWriter; writer Ljava/io/Writer; .(Ljava/io/Writer;Lorg/dom4j/io/OutputFormat;)V format ()V
ExceptionsB (Lorg/dom4j/io/OutputFormat;)V (Ljava/io/OutputStream;)V out Ljava/io/OutputStream; 4(Ljava/io/OutputStream;Lorg/dom4j/io/OutputFormat;)V
startCDATAC endCDATA
writeCDATA (Ljava/lang/String;)V textD writeEntity (Lorg/dom4j/Entity;)V entity Lorg/dom4j/Entity; writeDeclaration writeString
writeClose
qualifiedName writeEmptyElementClose omitElementClose (Ljava/lang/String;)Z internalGetOmitElementCloseSet ()Ljava/util/HashSet; loadOmitElementCloseSet (Ljava/util/Set;)V set Ljava/util/Set; getOmitElementCloseSet ()Ljava/util/Set; setOmitElementCloseSet aTag Ljava/lang/Object; iter Ljava/util/Iterator; newSet getPreformattedTags setPreformattedTags isPreformattedTag writeElement (Lorg/dom4j/Element;)V state %Lorg/dom4j/io/HTMLWriter$FormatState;
currentFormat saveNewlines Z saveTrimText
currentIndent element Lorg/dom4j/Element; saveLastText size
justSpaces &(Ljava/lang/String;)Ljava/lang/String; c C i res Ljava/lang/StringBuffer; lazyInitNewLinesAfterNTags prettyPrintHTML htmlE prettyPrintXHTML *(Ljava/lang/String;ZZZZ)Ljava/lang/String; newlines trim isXHTML expandEmpty sw Ljava/io/StringWriter; document Lorg/dom4j/Document;
SourceFile HTMLWriter.java s t } ? java/util/Stack } ? u v w p x y z y q r { r } ? } ?FG ?H ? ? ? ?IJ ?K yLMN
OPQRH o p ? ? ?N ? ? ? ? /> ? ? > ? ?SNTQ | r java/util/HashSet ? ? AREAUQ BASE BR COL HR IMG INPUT LINK META P PARAMVW
java/util/SetXYZ[H\W]^N ? ?_`Nab ? ?cHdHeN #org/dom4j/io/HTMLWriter$FormatState }fghi ?jb ? ?klmln ? ? ?oW java/lang/StringBuffer }pqrstub ? ? java/io/StringWritervGwlxl org/dom4j/io/HTMLWriteryz{J|} ? line.separator~ ? PRE SCRIPT STYLE TEXTAREA org/dom4j/io/OutputFormat }??l org/dom4j/io/XMLWriter $java/io/UnsupportedEncodingException org/xml/sax/SAXException java/io/IOException org/dom4j/DocumentException getOutputFormat ()Lorg/dom4j/io/OutputFormat; ()Z java/io/Writer write lastOutputNodeType org/dom4j/Entity getText ()Ljava/lang/String; java/lang/String equals (Ljava/lang/Object;)Z empty toUpperCase contains add clone ()Ljava/lang/Object; iterator ()Ljava/util/Iterator; java/util/Iterator hasNext next java/lang/Object toString org/dom4j/Element getQualifiedName nodeCount ()I
isNewlines
isTrimText getIndent 0(Lorg/dom4j/io/HTMLWriter;ZZLjava/lang/String;)V push &(Ljava/lang/Object;)Ljava/lang/Object; writePrintln length setNewlines (Z)V setTrimText setIndent pop (I)V charAt (I)C append (C)Ljava/lang/StringBuffer; getNewLineAfterNTags createPrettyPrint setXHTML setExpandEmptyElements org/dom4j/DocumentHelper parseText ((Ljava/lang/String;)Lorg/dom4j/Document; (Lorg/dom4j/Document;)V flush java/lang/System getProperty (Ljava/lang/String;Z)V setSuppressDeclaration ! \ l
o p q r s t u v w p x y z y { r | r } ~ w +*+? ? *? Y? ? *? *? *? *?
? ? ? ? ? ? ? ? # ? * ? ? + ? ? + ? ? } ? )*+,? *? Y? ? *? *? *? *?
? ? ? ? ? ? ? ? ! ? ( ? ? ) ? ? ) ? ? ) ? t } ? l **? ? *? Y? ? *? *? *? *?
? ? ? ? ? ? ? ? " ? ) ? ? * ? ? ? ? } ? t (*+? *? Y? ? *? *? *? *?
? ? ? ? ? ? ? ? ? ' ? ? ( ? ? ( ? t ? ? } ? w +*+? ?
*? Y? ? *? *? *? *?
? ? ? ? ? ? ? ? # ? * ? ? + ? ? + ? ? ? ? } ? )*+,?
*? Y? ? *? *? *? *?
? ? ? ? ? ? ? ? ! ? ( ? ? ) ? ? ) ? ? ) ? t ? ? ? ? + ? ? ? ? ? ? ? ? ? ? + ? ? ? ? ? ? ? ? ? ? d *? ? ? *+? ? *? +? *? ? ?
? ? ? ? p ? ? ? ? O *? +? ? *? ? ?
? ? ? ? ? ? ? ? ? + ? ? ? ? ? ? ? ? ? ? ;+? ? *? ? ?
*? ? ?*+? *? ? ? *+? ? ? *+? ? ? &