META-INF.modules.java.desktop.classes.javax.swing.text.html.MinimalHTMLWriter.class Maven / Gradle / Ivy
Show all versions of java.desktop Show documentation
???? :?
javax/swing/text/AbstractWriter .(Ljava/io/Writer;Ljavax/swing/text/Document;)V
'javax/swing/text/html/MinimalHTMLWriter fontMask I startOffset endOffset
0(Ljava/io/Writer;Ljavax/swing/text/Document;II)V java/util/Hashtable
()V styleNameMapping Ljava/util/Hashtable;
" # $
writeStartTag (Ljava/lang/String;)V
& ' writeHeader
) * writeBody ,
. / $ writeEndTag 1 2 3 4 5 javax/swing/text/AttributeSet getAttributeNames ()Ljava/util/Enumeration; 7 8 9 : ; java/util/Enumeration hasMoreElements ()Z 7 = > ? nextElement ()Ljava/lang/Object; A 2javax/swing/text/StyleConstants$ParagraphConstants C 2javax/swing/text/StyleConstants$CharacterConstants E -javax/swing/text/StyleConstants$FontConstants G .javax/swing/text/StyleConstants$ColorConstants
I J indent
L M N O P java/lang/Object toString ()Ljava/lang/String;
R S $ write
U S V (C)V X Y Z css Ljavax/swing/text/html/CSS; \ javax/swing/text/StyleConstants 1 ^ _ ` getAttribute &(Ljava/lang/Object;)Ljava/lang/Object;
b c d e f javax/swing/text/html/CSS styleConstantsValueToCSSValue G(Ljavax/swing/text/StyleConstants;Ljava/lang/Object;)Ljava/lang/Object;
h i j getText .(Ljavax/swing/text/Element;)Ljava/lang/String;
l m n o p java/lang/String length ()I
l r s t charAt (I)C
l v w x substring (II)Ljava/lang/String;
z {
incrIndent
} ~
decrIndent ? ? ?
? ? ? getDocument ()Ljavax/swing/text/Document; ? &javax/swing/text/DefaultStyledDocument
? ? ? 5
getStyleNames
? ? ? ? getStyle ,(Ljava/lang/String;)Ljavax/swing/text/Style; ? ? ? ? p javax/swing/text/Style getAttributeCount [ ? ? ?
NameAttribute Ljava/lang/Object; ? ? ? ? isDefined (Ljava/lang/Object;)Z ? ? ? P getName
? ? ? addStyleName &(Ljava/lang/String;)Ljava/lang/String; ? ? ? makeConcatWithConstants ? {
? ? ? writeAttributes "(Ljavax/swing/text/AttributeSet;)V ? }
? ? ? getElementIterator $()Ljavax/swing/text/ElementIterator;
? ? ? ? ? javax/swing/text/ElementIterator current ()Ljavax/swing/text/Element; ?
? ? ? ? next
? ? ? inRange (Ljavax/swing/text/Element;)Z ? /javax/swing/text/AbstractDocument$BranchElement
? ? writeEndParagraph
? ? ? writeStartParagraph (Ljavax/swing/text/Element;)V
? ? ? isText
? ? ? writeContent (Ljavax/swing/text/Element;Z)V
? ? ? writeLeaf ?
? ? ? writeEndMask (I)V
? ? ; inFontTag
? ?
endSpanTag ? ? ? ? ? ? javax/swing/text/Element
getAttributes !()Ljavax/swing/text/AttributeSet; [ ? ? ? ResolveAttribute ? (javax/swing/text/StyleContext$NamedStyle
? ?
? ? ? mapStyleName ? ? ? ? icon
?
writeImage component
? writeComponent !javax/swing/text/AbstractDocument content
? writeNonHTMLAttributes
?
writeHTMLTags
? text
? setFontMask
? writeStartMask
[ ! isBold "(Ljavax/swing/text/AttributeSet;)Z
[#$! isItalic
[&'! isUnderline) + - / 1 3 5 7 ; 9:; fontAttributes Ljavax/swing/text/AttributeSet; 1=>! isEqual [@A ?
ForegroundC java/awt/Color E ?F 8(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String; [HI ? FontSizeK java/lang/Integer M ?N 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
JPQ p intValue S ?T '(Ljava/lang/String;I)Ljava/lang/String; [VW ?
FontFamily M
Z[ $ startSpanTag]
_`
endFontTag ? ?d
fgh isValidCharacter (C)Zj java/lang/StringBuilder
il $
inop setCharAt (IC)V
i M
st ` get ?
wxy put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
b BOLD
ConstantValue ITALIC UNDERLINE Signature ;Ljava/util/Hashtable; 4(Ljava/io/Writer;Ljavax/swing/text/StyledDocument;)V Code LineNumberTable LocalVariableTable this )Ljavax/swing/text/html/MinimalHTMLWriter; w Ljava/io/Writer; doc !Ljavax/swing/text/StyledDocument; 6(Ljava/io/Writer;Ljavax/swing/text/StyledDocument;II)V pos len
Exceptions? java/io/IOException? %javax/swing/text/BadLocationException name attr attributeNames Ljava/util/Enumeration; LocalVariableTypeTable Ljava/util/Enumeration<*>;
StackMapTable elem Ljavax/swing/text/Element;
contentStr Ljava/lang/String; tag endTag s Ljavax/swing/text/Style; styledDoc (Ljavax/swing/text/DefaultStyledDocument;
styleNames it "Ljavax/swing/text/ElementIterator; inContent Z resolveAttr needsIndenting oldMask endMask startMask mask style separator first color Ljava/awt/Color; size Ljava/lang/Integer; family startFontTag
callIndent counter sb Ljava/lang/StringBuilder;
mappedName retValue character C
SourceFile MinimalHTMLWriter.java BootstrapMethods?
??? ?? $java/lang/invoke/StringConcatFactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;? p.? ? color: ? ? font-size: pt? font-family: ? ? ? x InnerClasses ParagraphConstants CharacterConstants
FontConstants ColorConstants
BranchElement? javax/swing/text/StyleContext
NamedStyle? %java/lang/invoke/MethodHandles$Lookup? java/lang/invoke/MethodHandles Lookup ! { | } ~ | ? | ? Y Z :; ? ? ? ? d *+,? *? *?
*? ? ? n S U V o? ?? ?? ?? ? ? { *+,? *? *?
*? ? ? | S U V }? 4 ?? ?? ?? ? ? S ? ^ *? Y? ? *? !*? %*? (*+? -? ? ? ? ? ? ? ?? ?? ? ?? ? ? ? m+? 0 M,? 6 ? _,? < N-? @? -? B? -? D?
-? F? 9*? H*-? K? Q*:? T*? W-? [+-? ] ? a? K? Q*;? T*
? T???? ? > ? ? ? ? 3 ? 7 ? ? ? E ? O ? W ? Z ? ] ? c ? i ? l ?? * R? ? m?? m?; f?? ? f?? ? ? 7? + L? 5? ? ? ? ? 5*+? gM,? k? ,,? kd? q
? ,,? kd? uM,? k? *,? Q? ? ? ? ? ? ( ? / ? 4 ?? 5?? 5?? /?? ? ? ( l? ?? # $ ? X *? H*+? Q*
? T*? y? ? ? ? ? ? ?? ?? ?? ? ? / $ ? X *? |*? H*+? Q*
? T? ? ? ? ?
? ?? ?? ?? ? ? ' ? o )*? !*?? !*?? !*? ?*?? -*?? -*?? -? ? " ? ? ? ? ? ? " ? ( ?? )?? ? ? ? ? ) u*? ?? ?L+? ?M,? 6 ? a+,? < ? l? ?N-? ? ? -? ?? ? ? ???*? H**-? ? ? ?? ? ? Q*?? Q*? y*-? ?*? |*? H*?? Q???? ? F
$ 2 :
= A T Z ^ c g k q t? * $ M?? u?? m??
h?? ?
h?? ? ?
? 7? / ?? 6? ? * ? i x*? ?L+? ?W*Ķ !>+? ?YM? Q*,? ɚ ???,? ͙ ? *? ?>*? *,? ҧ??*,? ֙ *,? ? ? ?>???*,? ?>???? *? ?*? -? ? Z &