All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class com.jclark.xml.output.UTF8XMLWriter
java.lang.Object
   |
   +----java.io.Writer
           |
           +----com.jclark.xml.output.XMLWriter
                   |
                   +----com.jclark.xml.output.UTF8XMLWriter
  -  public class UTF8XMLWriter
  -  extends XMLWriter
An XMLWriter that encodes characters in UTF-8.
 Methods are not synchronized: wrap this in a SyncXMLWriter
 if you need to use this concurrently from multiple threads.
   
  -   MINIMIZE_EMPTY_ELEMENTS MINIMIZE_EMPTY_ELEMENTS
-  
  
-   MINIMIZE_EMPTY_ELEMENTS_HTML MINIMIZE_EMPTY_ELEMENTS_HTML
-  
   
  -   UTF8XMLWriter(OutputStream) UTF8XMLWriter(OutputStream)
-   Create an XML writer that will write in UTF-8 to the specified
 OutputStream with the default options.
  
-   UTF8XMLWriter(OutputStream, int) UTF8XMLWriter(OutputStream, int)
-   Create an XML writer that will write in UTF-8 to the specified
 OutputStream with the specified options.
   
  -   attribute(String, String) attribute(String, String)
-   Writes an attribute.
  
-   cdataSection(String) cdataSection(String)
-   Writes a CDATA section.
  
-   characterReference(int) characterReference(int)
-   Writes a character reference.
  
-   close() close()
-  
  
-   comment(String) comment(String)
-   Writes a comment.
  
-   endAttribute() endAttribute()
-   Ends an attribute.
  
-   endElement(String) endElement(String)
-   Ends an element.
  
-   endReplacementText() endReplacementText()
-   Ends the replacement text for an internal entity.
  
-   entityReference(boolean, String) entityReference(boolean, String)
-   Writes an entity reference.
  
-   flush() flush()
-  
  
-   markup(String) markup(String)
-   Writes markup.
  
-   processingInstruction(String, String) processingInstruction(String, String)
-   Writes a processing instruction.
  
-   startAttribute(String) startAttribute(String)
-   Starts an attribute.
  
-   startElement(String) startElement(String)
-   Starts an element.
  
-   startReplacementText() startReplacementText()
-   Starts the replacement text for an internal entity.
  
-   write(char) write(char)
-  
  
-   write(char[], int, int) write(char[], int, int)
-  
  
-   write(String) write(String)
-  
  
-   write(String, int, int) write(String, int, int)
-  
  
-   writeUTF8(byte[], int, int) writeUTF8(byte[], int, int)
-  
   
 MINIMIZE_EMPTY_ELEMENTS
MINIMIZE_EMPTY_ELEMENTS
 public static final int MINIMIZE_EMPTY_ELEMENTS
 MINIMIZE_EMPTY_ELEMENTS_HTML
MINIMIZE_EMPTY_ELEMENTS_HTML
 public static final int MINIMIZE_EMPTY_ELEMENTS_HTML
   
 UTF8XMLWriter
UTF8XMLWriter
 public UTF8XMLWriter(OutputStream out,
                      int options)
  -  Create an XML writer that will write in UTF-8 to the specified
 OutputStream with the specified options.
 
 UTF8XMLWriter
UTF8XMLWriter
 public UTF8XMLWriter(OutputStream out)
  -  Create an XML writer that will write in UTF-8 to the specified
 OutputStream with the default options.
 
   
 writeUTF8
writeUTF8
 public void writeUTF8(byte buf[],
                       int off,
                       int len) throws IOException
 write
write
 public void write(char cbuf[],
                   int off,
                   int len) throws IOException
  - 
    -  Overrides:
    
-  write in class Writer
  
 
 write
write
 public void write(char c) throws IOException
 write
write
 public void write(String str) throws IOException
  - 
    -  Overrides:
    
-  write in class Writer
  
 
 write
write
 public void write(String str,
                   int off,
                   int len) throws IOException
  - 
    -  Overrides:
    
-  write in class Writer
  
 
 startElement
startElement
 public void startElement(String name) throws IOException
  -  Starts an element.
   
- 
    -  Overrides:
    
-  startElement in class XMLWriter
  
 
 attribute
attribute
 public void attribute(String name,
                       String value) throws IOException
  -  Writes an attribute.
   
- 
    -  Overrides:
    
-  attribute in class XMLWriter
  
 
 startAttribute
startAttribute
 public void startAttribute(String name) throws IOException
  -  Starts an attribute.
   
- 
    -  Overrides:
    
-  startAttribute in class XMLWriter
  
 
 endAttribute
endAttribute
 public void endAttribute() throws IOException
  -  Ends an attribute.
   
- 
    -  Overrides:
    
-  endAttribute in class XMLWriter
  
 
 endElement
endElement
 public void endElement(String name) throws IOException
  -  Ends an element.
   
- 
    -  Overrides:
    
-  endElement in class XMLWriter
  
 
 processingInstruction
processingInstruction
 public void processingInstruction(String target,
                                   String data) throws IOException
  -  Writes a processing instruction.
   
- 
    -  Overrides:
    
-  processingInstruction in class XMLWriter
  
 
 comment
comment
 public void comment(String body) throws IOException
  -  Writes a comment.
   
- 
    -  Overrides:
    
-  comment in class XMLWriter
  
 
 entityReference
entityReference
 public void entityReference(boolean isParam,
                             String name) throws IOException
  -  Writes an entity reference.
   
- 
    -  Overrides:
    
-  entityReference in class XMLWriter
  
 
 characterReference
characterReference
 public void characterReference(int n) throws IOException
  -  Writes a character reference.
   
- 
    -  Overrides:
    
-  characterReference in class XMLWriter
  
 
 cdataSection
cdataSection
 public void cdataSection(String content) throws IOException
  -  Writes a CDATA section.
   
- 
    -  Overrides:
    
-  cdataSection in class XMLWriter
  
 
 markup
markup
 public void markup(String str) throws IOException
  -  Writes markup.
   
- 
    -  Overrides:
    
-  markup in class XMLWriter
  
 
 startReplacementText
startReplacementText
 public void startReplacementText() throws IOException
  -  Starts the replacement text for an internal entity.
   
- 
    -  Overrides:
    
-  startReplacementText in class XMLWriter
  
 
 endReplacementText
endReplacementText
 public void endReplacementText() throws IOException
  -  Ends the replacement text for an internal entity.
   
- 
    -  Overrides:
    
-  endReplacementText in class XMLWriter
  
 
 flush
flush
 public void flush() throws IOException
  - 
    -  Overrides:
    
-  flush in class Writer
  
 
 close
close
 public void close() throws IOException
  - 
    -  Overrides:
    
-  close in class Writer
  
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index