|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--javax.swing.text.AbstractWriter
AbstractWriter ´Â ¼Ó¼ºÀ» Æ÷ÇÔÇÑ ¿ä¼Ò Æ®¸®¸¦ ½ÇÁ¦·Î ½á³»´Â Ãß»ó Ŭ·¡½ºÀÔ´Ï´Ù. 1 Çà ´ç¿¡ ½á³»´Â ij¸¯ÅͼöÀÇ µðÆúÆ®´Â 100 ÀÔ´Ï´Ù. ´Ù¸¸, ÀÌ °ªÀº ¼ºê Ŭ·¡½º¿¡¼ ¼³Á¤ÇÒ ¼ö°¡ ÀÖ½À´Ï´Ù.
ÇʵåÀÇ °³¿ä | |
protected static char |
NEWLINE
ÅØ½ºÆ® ÆÐŰÁö ¸ðµ¨ÀÇ °³Çà¹ý |
»ý¼ºÀÚÀÇ °³¿ä | |
protected |
AbstractWriter (Writer w,
Document doc)
»õ·Î¿î AbstractWriter ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
protected |
AbstractWriter (Writer w,
Document doc,
int pos,
int len)
»õ·Î¿î AbstractWriter ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
protected |
AbstractWriter (Writer w,
Element root)
»õ·Î¿î AbstractWriter ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
protected |
AbstractWriter (Writer w,
Element root,
int pos,
int len)
»õ·Î¿î AbstractWriter ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
¸Þ¼ÒµåÀÇ °³¿ä | |
protected void |
decrIndent ()
Àε§Æ® ·¹º§À» °¨¼Ò ÇÕ´Ï´Ù. |
protected boolean |
getCanWrapLines ()
ÇàÀÌ ·¦ °¡´ÉÇѰ¡ ¾î¶²°¡¸¦ µ¹·ÁÁÝ´Ï´Ù. |
protected int |
getCurrentLineLength ()
ÇöÀçÀÇ ÇàÀÇ ±æÀ̸¦ µ¹·ÁÁÝ´Ï´Ù. |
protected Document |
getDocument ()
¹®¼¸¦ ²¨³À´Ï´Ù. |
protected ElementIterator |
getElementIterator ()
ElementIterator ¸¦ ²¨³À´Ï´Ù. |
int |
getEndOffset ()
Ãâ·Â ´ë»óÀÇ ¸¶Áö¸· ¿ÀÇÁ¼Â(offset)¸¦ µ¹·ÁÁÝ´Ï´Ù. |
protected int |
getIndentLevel ()
ÇöÀçÀÇ Àε§Æ® ·¹º§À» µ¹·ÁÁÝ´Ï´Ù. |
protected int |
getIndentSpace ()
Àε§Æ® ÇÏ´Â ½ºÆäÀ̽ºÀÇ ¾çÀ» µ¹·ÁÁÝ´Ï´Ù. |
protected int |
getLineLength ()
ÇàÀÇ ±æÀÌÀÇ ÃÖ´ëÄ¡¸¦ µ¹·ÁÁÝ´Ï´Ù. |
String |
getLineSeparator ()
°³ÇàÀ» ³ªÅ¸³¾ ¶§ »ç¿ëÇϴ ij¸¯ÅÍ ¶óÀÎÀ» µ¹·ÁÁÝ´Ï´Ù. |
int |
getStartOffset ()
Ãâ·Â ´ë»óÀÇ ÃÖÃÊÀÇ ¿ÀÇÁ¼Â(offset)¸¦ µ¹·ÁÁÝ´Ï´Ù. |
protected String |
getText (Element elem)
¿ä¼Ò¿¡ °ü·ÃÇÑ ÅØ½ºÆ®¸¦ µ¹·ÁÁÝ´Ï´Ù. |
protected Writer |
getWriter ()
ÄÁÅÙÃ÷¸¦ Ãâ·ÂÇÒ °æ¿ì¿¡ »ç¿ëÇÑ ¶óÀÌÅ͸¦ µ¹·ÁÁÝ´Ï´Ù. |
protected void |
incrIndent ()
Àε§Æ® ·¹º§À» ÀÎÅ©¸®¸ÕÆ®(increment) ÇÕ´Ï´Ù. |
protected void |
indent ()
Àε§Æ®¸¦ ½Ç½ÃÇÕ´Ï´Ù. |
protected boolean |
inRange (Element next)
ÀÌ ¸Þ¼Òµå´Â ÇöÀçÀÇ ¿ä¼Ò°¡ ÁöÁ¤µÈ ¹üÀ§³»¿¡ ÀÖÀ»Áö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù. |
protected boolean |
isLineEmpty ()
ÇöÀçÀÇ ÇàÀÇ ±æÀ̰¡ ºñ¾úÀ» °æ¿ì´Â true ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
protected void |
output (char[] content,
int start,
int length)
ÄÁÅÙÃ÷ ±âÀÔ½ÃÀÇ ¸¶Áö¸· Á¤ÁöÀÔ´Ï´Ù. |
protected void |
setCanWrapLines (boolean newValue)
ÇàÀ» ·¦ ÇÒ ¼ö ÀÖÀ»Áö ¾î¶³Áö¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
protected void |
setCurrentLineLength (int length)
ÇöÀçÀÇ ÇàÀÇ ±æÀ̸¦ ¼³Á¤ÇÕ´Ï´Ù. |
protected void |
setIndentSpace (int space)
Àε§Æ®¿¡ ¸ÅÇÎ ÇÏ´Â ½ºÆäÀ̽ºÀÇ ¼ö¸¦ ¼ºê Ŭ·¡½º·ÎºÎÅÍ ÁöÁ¤ÇÒ ¼ö ÀÖ°Ô ÇÕ´Ï´Ù. |
protected void |
setLineLength (int l)
1 Çà ±Ùó¿¡ ±âÀÔÇÒ ¼ö Àִ ij¸¯Åͼö¸¦ ¼ºê Ŭ·¡½º·ÎºÎÅÍ ¼³Á¤ÇÒ ¼ö ÀÖ°Ô ÇÕ´Ï´Ù. |
void |
setLineSeparator (String value)
°³ÇàÀ» ³ªÅ¸³¾ ¶§ »ç¿ëÇÏ´Â String ¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
protected void |
text (Element elem)
ÅØ½ºÆ®¸¦ ½á³À´Ï´Ù. |
protected abstract void |
write ()
ÀÌ Ãß»ó ¸Þ¼Òµå´Â ¼ºê Ŭ·¡½º¿¡ ÀÇÇØ ±¸ÇöµÉ Çʿ䰡 ÀÖ½À´Ï´Ù. |
protected void |
write (char ch)
¹®ÀÚ¸¦ ½á³À´Ï´Ù. |
protected void |
write (char[] chars,
int startIndex,
int length)
¸ðµç ¼µÎ ¸Þ¼Òµå´Â À̰ÍÀ» È£ÃâÇÕ´Ï´Ù. |
protected void |
write (String content)
ij¸¯ÅÍ ¶óÀÎÀ» ½á³À´Ï´Ù. |
protected void |
writeAttributes (AttributeSet attr)
¼Ó¼º ¼¼Æ®¸¦ "<À̸§>=<°ª>" ÀÇ Æä¾î·Î¼ ½á³À´Ï´Ù. |
protected void |
writeLineSeparator ()
Çà ´Ü¶ô ¹®ÀÚ¸¦ ½á³À´Ï´Ù. |
Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
ÇʵåÀÇ »ó¼¼ |
protected static final char NEWLINE
getLineSeparator()
,
Á¤¼ö ÇʵåÄ¡ »ý¼ºÀÚÀÇ »ó¼¼ |
protected AbstractWriter(Writer w, Document doc)
protected AbstractWriter(Writer w, Document doc, int pos, int len)
pos
- ÄÁÅÙÃ÷¸¦ ÃëµæÇÏ´Â ¹®¼³»ÀÇ À§Ä¡len
- ½á³»´Â ¾çprotected AbstractWriter(Writer w, Element root)
protected AbstractWriter(Writer w, Element root, int pos, int len)
pos
- ÄÁÅÙÃ÷¸¦ ÃëµæÇÏ´Â ¹®¼³»ÀÇ À§Ä¡len
- ½á³»´Â ¾ç¸Þ¼ÒµåÀÇ »ó¼¼ |
public int getStartOffset()
public int getEndOffset()
protected ElementIterator getElementIterator()
protected Writer getWriter()
protected Document getDocument()
protected boolean inRange(Element next)
protected abstract void write() throws IOException , BadLocationException
IOException
BadLocationException
protected String getText(Element elem) throws BadLocationException
String
·Î¼ÀÇ ÅØ½ºÆ®
BadLocationException
- pos °¡ ¹®¼³»ÀÇ ¹«È¿ÀÎ À§Ä¡¸¦ ³ªÅ¸³»´Â °æ¿ìprotected void text(Element elem) throws BadLocationException , IOException
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
BadLocationException
- pos °¡ ¹®¼³»ÀÇ ¹«È¿ÀÎ À§Ä¡¸¦ ³ªÅ¸³»´Â °æ¿ìprotected void setLineLength(int l)
protected int getLineLength()
protected void setCurrentLineLength(int length)
protected int getCurrentLineLength()
protected boolean isLineEmpty()
getCurrentLineLength
== 0 || indent
°¡ ÇÏ´ÃÀÇ Çà»ó¿¡¼ ºÒ·Á °¬À» °æ¿ì¿¡´Â true ÀÔ´Ï´Ù.
protected void setCanWrapLines(boolean newValue)
protected boolean getCanWrapLines()
protected void setIndentSpace(int space)
protected int getIndentSpace()
public void setLineSeparator(String value)
public String getLineSeparator()
protected void incrIndent()
getLineLength()
º¸´Ù Ä¿Áö´Â °Í °°Àº getIndentSpace()
* getIndentLevel()
°¡ µÇ¸é(ÀÚ) Àε§Æ® ÇÏÁö ¾Ê½À´Ï´Ù.
protected void decrIndent()
protected int getIndentLevel()
incrIndent
°¡ ºÒ·Á °£ ȸ¼ö·ÎºÎÅÍ decrIndent
°¡ ºÒ·Á °£ ȸ¼ö¸¦ ´ç±ä ¼öÀÔ´Ï´Ù.
protected void indent() throws IOException
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected void write(char ch) throws IOException
write
¸Þ¼Òµå¸¦ È£ÃâÇÒ ¶§ ±¸ÇöµË´Ï´Ù.
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected void write(String content) throws IOException
write
¸Þ¼Òµå¸¦ È£ÃâÇÒ ¶§ ±¸ÇöµË´Ï´Ù.
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected void writeLineSeparator() throws IOException
output
¸¦ Á÷Á¢ È£ÃâÇØ,lineLength
¸¦ 0 À¸·Î ¼³Á¤ÇÕ´Ï´Ù.
IOException
protected void write(char[] chars, int startIndex, int length) throws IOException
getCanWrapLines()
°¡ false ¸¦ µ¹·ÁÁÖ¸é(ÀÚ) NEWLINE ¸¦ Æ÷ÇÔÇÏÁö ¾Ê´Â chars
ÀÇ °¢ ¼øÂ÷ ¼ø¼ ÷ºÎ output
¸¦ È£ÃâÇØ, °è¼ÓµÇ¾î writeLineSeparator
¸¦ È£ÃâÇÕ´Ï´Ù. ÇÑÆí,getCanWrapLines()
°¡ true ¸¦ µ¹·ÁÁÖ¸é(ÀÚ), Çʿ信 µû¶ó¼ ij¸¯ÅÍ ¶óÀÎÀ» ºÐÇÒÇØ getLineLength
¸¦ ¹Þ½À´Ï´Ù. À¯ÀÏÇÑ ¿¹¿Ü´Â ÇöÀçÀÇ Ä³¸¯ÅÍ ¶óÀο¡ °ø¹éÀÌ Æ÷ÇÔµÇÁö ¾Ê´Â °æ¿ì·Î, ÇàÀÇ ±æÀ̰¡ getLineLength
¸¦ ³Ñ±â (À§ÇØ)¶§¹®¿¡ µé¾î°¡Áö ¾Ê½À´Ï´Ù.
IOException
protected void writeAttributes(AttributeSet attr) throws IOException
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìprotected void output(char[] content, int start, int length) throws IOException
write
¸¦ È£ÃâÇÕ´Ï´Ù.
ÀÌ ¸Þ¼Òµåµµ length
¿¡ ±Ù°ÅÇØ ÇàÀÇ ±æÀ̸¦ °»½ÅÇÕ´Ï´Ù. °³ÇàÀ» Ãâ·ÂÇϱâ À§Çؼ ºÒ·Á °¡¸é(ÀÚ), ÇöÀçÀÇ ÇàÀÇ ±æÀ̸¦ ¸®¼ÂÆ® ÇØ ¹«È¿·Î ÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù. ÀÌ ½ÇÇàÀÌ È£ÃâÇØ Ãø¿¡ ÀÇÁ¸ÇÏ´Â °æ¿ì´Â writeLineSeparator
¸¦ »ç¿ëÇØ °³ÇàÀ» ½á³», ÇöÀçÀÇ ÇàÀÇ ±æÀÌÀÇ ÇÁ·ÎÆÛƼ¸¦ °»½ÅÇÕ´Ï´Ù.
IOException
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ ÀÖ¾î¼ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.