|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
java.lang.Objectjavax.swing.text.AbstractWriter
javax.swing.text.html.HTMLWriter
public class HTMLWriter
HTMLDocument 의 라이터입니다.
| 필드의 개요 |
|---|
| 클래스 javax.swing.text. AbstractWriter 로부터 상속된 필드 |
|---|
NEWLINE |
| 생성자 의 개요 | |
|---|---|
HTMLWriter (Writer w,
HTMLDocument doc)
새로운 HTMLWriter 를 작성합니다. |
|
HTMLWriter (Writer w,
HTMLDocument doc,
int pos,
int len)
새로운 HTMLWriter 를 작성합니다. |
|
| 메소드의 개요 | |
|---|---|
protected void |
closeOutUnwantedEmbeddedTags (AttributeSet attr)
속성 세트 및 태그 벡터에 포함된 각 태그를 검색합니다. |
protected void |
comment (Element elem)
코멘트를 써냅니다. |
protected void |
emptyTag (Element elem)
모든 빈 상태(empty) 요소 (대응하는 종료 태그가 없는 태그 모든 것)를 써냅니다. |
protected void |
endTag (Element elem)
요소의 종료 태그를 써냅니다. |
protected boolean |
isBlockTag (AttributeSet attr)
요소에 대응하는 HTML 태그가 block 태그인가 어떤가를 판정합니다. |
protected boolean |
matchNameAttribute (AttributeSet attr,
HTML.Tag tag)
StyleConstants.NameAttribute 가 파라미터로서 건네받는 태그에 동일한 경우는 true 를 돌려줍니다. |
protected void |
output (char[] chars,
int start,
int length)
이 메소드는, 문자 엔티티를 매핑 하기 위해서 오버라이드(override) 됩니다 (< 와 < 등). |
protected void |
selectContent (AttributeSet attr)
SELECT 폼 요소의 컨텐츠를 써냅니다. |
protected void |
startTag (Element elem)
요소의 개시 태그를 써냅니다. |
protected boolean |
synthesizedElement (Element elem)
요소가 합성 요소의 경우는 true 를 돌려줍니다. |
protected void |
text (Element elem)
텍스트를 써냅니다. |
protected void |
textAreaContent (AttributeSet attr)
폼 요소의 TEXTAREA 에 포함되고 있는 텍스트를 써냅니다. |
void |
write ()
요소 트리로 반복되어 모든 태그와 그 속성의 기입을 제어합니다. |
protected void |
writeAttributes (AttributeSet attr)
속성 세트를 써냅니다. |
protected void |
writeEmbeddedTags (AttributeSet attr)
AttributeSet 로 짜넣어 태그를 검색해 그것을 써냅니다. |
protected void |
writeLineSeparator ()
행 단락 문자를 써냅니다. |
protected void |
writeOption (Option option)
Option 폼 요소의 컨텐츠를 써냅니다. |
| 클래스 javax.swing.text. AbstractWriter 로부터 상속된 메소드 |
|---|
decrIndent , getCanWrapLines , getCurrentLineLength , getDocument , getElementIterator , getEndOffset , getIndentLevel , getIndentSpace , getLineLength , getLineSeparator , getStartOffset , getText , getWriter , incrIndent , indent , inRange , isLineEmpty , setCanWrapLines , setCurrentLineLength , setIndentSpace , setLineLength , setLineSeparator , write , write , write |
| 클래스 java.lang. Object 로부터 상속된 메소드 |
|---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
| 생성자 의 상세 |
|---|
public HTMLWriter(Writer w,
HTMLDocument doc)
w - Writerdoc - HTMLDocument
public HTMLWriter(Writer w,
HTMLDocument doc,
int pos,
int len)
w - Writerdoc - HTMLDocumentpos - 컨텐츠를 취득하는 문서의 위치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 emptyTag(Element elem)
throws BadLocationException ,
IOException
elem - Element
IOException - 입출력 에러가 발생했을 경우
BadLocationException - pos 가 문서내의
무효인 위치를 나타내는 경우protected boolean isBlockTag(AttributeSet attr)
attr - AttributeSet
protected void startTag(Element elem)
throws IOException ,
BadLocationException
elem - Element
IOException - 입출력 에러가 발생했을 경우
BadLocationException
protected void textAreaContent(AttributeSet attr)
throws BadLocationException ,
IOException
attr - AttributeSet
IOException - 입출력 에러가 발생했을 경우
BadLocationException - pos 가 문서내의
무효인 위치를 나타내는 경우
protected void text(Element elem)
throws BadLocationException ,
IOException
AbstractWriter 내의 text elem - Element
IOException - 입출력 에러가 발생했을 경우
BadLocationException - pos 가 문서내의
무효인 위치를 나타내는 경우
protected void selectContent(AttributeSet attr)
throws IOException
attr - 폼 요소에 관련한 AttributeSet
IOException - 입출력 에러가 발생했을 경우
protected void writeOption(Option option)
throws IOException
option - Option
IOException - 입출력 에러가 발생했을 경우
protected void endTag(Element elem)
throws IOException
elem - Element
IOException - 입출력 에러가 발생했을 경우
protected void comment(Element elem)
throws BadLocationException ,
IOException
elem - Element
IOException - 입출력 에러가 발생했을 경우
BadLocationException - pos 가 문서내의
무효인 위치를 나타내는 경우protected boolean synthesizedElement(Element elem)
protected boolean matchNameAttribute(AttributeSet attr,
HTML.Tag tag)
protected void writeEmbeddedTags(AttributeSet attr)
throws IOException
IOException - 입출력 에러가 발생했을 경우
protected void closeOutUnwantedEmbeddedTags(AttributeSet attr)
throws IOException
IOException - 입출력 에러가 발생했을 경우
protected void writeLineSeparator()
throws IOException
AbstractWriter 내의 writeLineSeparator IOException
protected void output(char[] chars,
int start,
int length)
throws IOException
super.output 가 불려 갑니다.
AbstractWriter 내의 output IOException
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.