|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
java.lang.Objectjavax.swing.text.AbstractWriter
javax.swing.text.html.MinimalHTMLWriter
public class MinimalHTMLWriter
MinimalHTMLWriter´Â ¿¡µðÅÍ Å¶À¸·Î ÀÛ¼ºµÇÁö ¾Ê´Â ¹®¼ÀÇ HTML¸¦ ½á³»±â À§Çؼ HTMLEditorKit°¡ »ç¿ëÇÏ´Â ´ëü ¶óÀÌÅÍÀÔ´Ï´Ù. ¹®¼ÀÇ Çü½ÄÀº ´ÙÀ½°ú °°½À´Ï´Ù.
<html>
<head>
<style>
<! -- list of named styles
p.normal {
font-family: SansSerif;
margin-height: 0;
font-size: 14
}
-->
</style>
</head>
<body>
<p style=normal>
½ÇÇà ÆÄÀÏÀÇ º¼µå, ÀÌÅŸ¯ ¹× ¹ØÁÙ
°¢ ¼Ó¼ºÀº HTML ű׷μ ¹ßÇàµË´Ï´Ù.
±× ¿ÜÀÇ Å±״ <span> ű×ÀÇ ÀϺημ ¹ßÇàµË´Ï´Ù.
±¸¹®Àº ÀÎ ¶óÀÎÀÇ ½ºÅ¸Àϰú °°½À´Ï´Ù.
</p>
</body>
</html>
| ÇÊµå °³¿ä |
|---|
| Ŭ·¡½º javax.swing.text. AbstractWriter ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå |
|---|
NEWLINE |
| »ý¼ºÀÚ °³¿ä | |
|---|---|
MinimalHTMLWriter (Writer w,
StyledDocument doc)
»õ·Î¿î MinimalHTMLWriter¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
|
MinimalHTMLWriter (Writer w,
StyledDocument doc,
int pos,
int len)
»õ·Î¿î MinimalHTMLWriter¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
|
| ¸Þ¼µå °³¿ä | |
|---|---|
protected void |
endFontTag ()
ÇöÀç »ç¿ëµÇÁö ¾Ê½À´Ï´Ù. |
protected boolean |
inFontTag ()
<font> ű׳»¶ó¸é true¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
protected boolean |
isText (Element elem)
¿ä¼Ò°¡ ÅØ½ºÆ®¶ó¸é true¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
protected void |
startFontTag (String style)
ÇöÀç »ç¿ëµÇÁö ¾Ê½À´Ï´Ù. |
protected void |
text (Element elem)
ÅØ½ºÆ®¸¦ ½á³À´Ï´Ù. |
void |
write ()
StyledDocument ·ÎºÎÅÍ HTML Ãâ·ÂÀ» »ý¼ºÇÕ´Ï´Ù. |
protected void |
writeAttributes (AttributeSet attr)
´ÙÀ½ÀÇ Çü¿ëÀÇ ¸ðµç ¼Ó¼ºÀ» ½á³À´Ï´Ù. |
protected void |
writeBody ()
¹®¼³»ÀÇ ¿ä¼Ò·Î ¹Ýº¹ÇØ, °¡ÁöÀÇ ¿ä¼Ò³ª ÀÙÀÇ ¿ä¼ÒÀÎÁö¸¦ ÆÇ´ÜÇØ ¿ä¼Ò¸¦ ó¸®ÇÕ´Ï´Ù. |
protected void |
writeComponent (Element elem)
ÄÄÆÛ³ÍÆ® ¿ä¼ÒÀÇ ¼µÎ¸¦ ½Ç½ÃÇÕ´Ï´Ù. |
protected void |
writeContent (Element elem,
boolean needsIndenting)
HTML¿¡ ÁذÅÇÑ ¹æ¹ýÀ¸·Î ¼Ó¼º ¼¼Æ®¸¦ ½á³À´Ï´Ù. |
protected void |
writeEndParagraph ()
<p> ű׿¡ ´ëÇÑ Á¾·á ű׸¦ ¹ßÇàÇÕ´Ï´Ù. |
protected void |
writeEndTag (String endTag)
ÀûÀýÈ÷ Àε§Æ® ó¸®µÈ Á¾·á ű׸¦ ½á³À´Ï´Ù. |
protected void |
writeHeader ()
<head> ¹× <style> ű׸¦ ½á³», ´ÙÀ½¿¡ writeStyles()¸¦ ½ÃÀÛÇØ <style> ű×ÀÇ ÄÁÅÙÃ÷·Î¼ ¸ðµç À̸§ ÷ºÎÀÇ ½ºÅ¸ÀÏÀ» ½á³À´Ï´Ù. |
protected void |
writeHTMLTags (AttributeSet attr)
¼Ó¼º ¼³Á¤¿¡ ±Ù°ÅÇØ ÅØ½ºÆ®ÀÇ º¼µå <b>, ÀÌÅŸ¯ <i> ¹× <u> ű׸¦ »ý¼ºÇÕ´Ï´Ù. |
protected void |
writeImage (Element elem)
¾ÆÀÌÄÜ ¿ä¼ÒÀÇ ¼µÎ¸¦ ½Ç½ÃÇÕ´Ï´Ù. |
protected void |
writeLeaf (Element elem)
ÅØ½ºÆ® ÀÌ¿ÜÀÇ ÀÙÀÇ ¿ä¼ÒÀÇ ¼µÎ¸¦ Á¦¾îÇÕ´Ï´Ù. |
protected void |
writeNonHTMLAttributes (AttributeSet attr)
HTML ÁذÅÀÇ ¹æ¹ýÀ¸·Î ³ª¸ÓÁöÀÇ ¹®ÀÚ ·¹º§ÀÇ ¼Ó¼º (º¼µå, ÀÌÅŸ¯, ¹ØÁÙ ÀÌ¿ÜÀÇ ¼Ó¼º)À» ½á³À´Ï´Ù. |
protected void |
writeStartParagraph (Element elem)
´Ü¶ôÀÇ °³½Ã ű׸¦ ¹ßÇàÇÕ´Ï´Ù. |
protected void |
writeStartTag (String tag)
ÀûÀýÈ÷ Àε§Æ® ó¸®µÈ °³½Ã ű׸¦ ½á³À´Ï´Ù. |
protected void |
writeStyles ()
<style> ű×ÀÇ ÄÁÅÙÃ÷·Î¼ ¸ðµç À̸§ ÷ºÎ ½ºÅ¸ÀÏÀ» ½á³À´Ï´Ù. |
| Ŭ·¡½º javax.swing.text. AbstractWriter ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
|---|
decrIndent,
getCanWrapLines,
getCurrentLineLength,
getDocument,
getElementIterator,
getEndOffset,
getIndentLevel,
getIndentSpace,
getLineLength,
getLineSeparator,
getStartOffset,
getText,
getWriter,
incrIndent,
indent,
inRange,
isLineEmpty,
output,
setCanWrapLines,
setCurrentLineLength,
setIndentSpace,
setLineLength,
setLineSeparator,
write,
write,
write,
writeLineSeparator |
| Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
|---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| »ý¼ºÀÚ »ó¼¼ |
|---|
public MinimalHTMLWriter(Writer w,
StyledDocument doc)
w - ¶óÀÌÅÍdoc - StyledDocument
public MinimalHTMLWriter(Writer w,
StyledDocument doc,
int pos,
int len)
w - ¶óÀÌÅÍdoc - StyledDocumentpos - ÄÁÅÙÃ÷¸¦ ¾ò´Â ¹®¼³»ÀÇ À§Ä¡len - ½á³»´Â ¾ç| ¸Þ¼µåÀÇ »ó¼¼ |
|---|
public void write()
throws IOException,
BadLocationException
AbstractWriter ³»ÀÇ write IOException - ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
BadLocationException - pos°¡ ¹®¼³»ÀÇ ¹«È¿ÀÎ À§Ä¡¸¦ ³ªÅ¸³»´Â °æ¿ì
protected void writeAttributes(AttributeSet attr)
throws IOException
AbstractWriter ³»ÀÇ writeAttributes attr - AttributeSet
IOException - ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
protected void text(Element elem)
throws IOException,
BadLocationException
AbstractWriter ³»ÀÇ text elem - Element
IOException - ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
BadLocationException - pos°¡ ¹®¼³»ÀÇ ¹«È¿ÀÎ À§Ä¡¸¦ ³ªÅ¸³»´Â °æ¿ì
protected void writeStartTag(String tag)
throws IOException
IOException - ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
protected void writeEndTag(String endTag)
throws IOException
IOException - ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
protected void writeHeader()
throws IOException
IOException - ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
protected void writeStyles()
throws IOException
IOException - ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
protected void writeBody()
throws IOException,
BadLocationException
IOException - ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
BadLocationException
protected void writeEndParagraph()
throws IOException
IOException - ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
protected void writeStartParagraph(Element elem)
throws IOException
IOException - ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
protected void writeLeaf(Element elem)
throws IOException
IOException - ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
protected void writeImage(Element elem)
throws IOException
elem - StyleConstants.IconElementName ÇüÀÇ ¿ä¼Ò
IOException
protected void writeComponent(Element elem)
throws IOException
IOException protected boolean isText(Element elem)
protected void writeContent(Element elem,
boolean needsIndenting)
throws IOException,
BadLocationException
IOException - ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
BadLocationException - pos°¡ ¹®¼³»ÀÇ ¹«È¿ÀÎ À§Ä¡¸¦ ³ªÅ¸³»´Â °æ¿ì
protected void writeHTMLTags(AttributeSet attr)
throws IOException
IOException - ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
protected void writeNonHTMLAttributes(AttributeSet attr)
throws IOException
IOException - ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected boolean inFontTag()
protected void endFontTag()
throws IOException
<font> ű׿ëÀÇ Á¾·á ű׸¦ ½á³À´Ï´Ù.
IOException - ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
protected void startFontTag(String style)
throws IOException
<font> ű׿ëÀÇ °³½Ã ű׸¦ ½á³À´Ï´Ù. ÆùÆ® ű״ »óÀÚ·Î ÇÒ ¼ö ¾ø±â ¶§¹®¿¡ »õ·Î¿î °³½Ã ű׸¦ ½á³»±â Àü¿¡ ÆùÆ® ű×ÀÇ Æ÷À§¸¦ ´Ý½À´Ï´Ù.
IOException - ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.