1 | |
package org.codehaus.plexus.util.xml.pull; |
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | |
|
22 | |
import java.io.IOException; |
23 | |
import java.io.OutputStream; |
24 | |
import java.io.Writer; |
25 | |
|
26 | |
public interface XmlSerializer |
27 | |
{ |
28 | |
|
29 | |
void setFeature( String name, boolean state ) |
30 | |
throws IllegalArgumentException, IllegalStateException; |
31 | |
|
32 | |
boolean getFeature( String name ); |
33 | |
|
34 | |
void setProperty( String name, Object value ) |
35 | |
throws IllegalArgumentException, IllegalStateException; |
36 | |
|
37 | |
Object getProperty( String name ); |
38 | |
|
39 | |
void setOutput( OutputStream os, String encoding ) |
40 | |
throws IOException, IllegalArgumentException, IllegalStateException; |
41 | |
|
42 | |
void setOutput( Writer writer ) |
43 | |
throws IOException, IllegalArgumentException, IllegalStateException; |
44 | |
|
45 | |
void startDocument( String encoding, Boolean standalone ) |
46 | |
throws IOException, IllegalArgumentException, IllegalStateException; |
47 | |
|
48 | |
void endDocument() |
49 | |
throws IOException, IllegalArgumentException, IllegalStateException; |
50 | |
|
51 | |
void setPrefix( String prefix, String namespace ) |
52 | |
throws IOException, IllegalArgumentException, IllegalStateException; |
53 | |
|
54 | |
String getPrefix( String namespace, boolean generatePrefix ) |
55 | |
throws IllegalArgumentException; |
56 | |
|
57 | |
int getDepth(); |
58 | |
|
59 | |
String getNamespace(); |
60 | |
|
61 | |
String getName(); |
62 | |
|
63 | |
XmlSerializer startTag( String namespace, String name ) |
64 | |
throws IOException, IllegalArgumentException, IllegalStateException; |
65 | |
|
66 | |
XmlSerializer attribute( String namespace, String name, String value ) |
67 | |
throws IOException, IllegalArgumentException, IllegalStateException; |
68 | |
|
69 | |
XmlSerializer endTag( String namespace, String name ) |
70 | |
throws IOException, IllegalArgumentException, IllegalStateException; |
71 | |
|
72 | |
XmlSerializer text( String text ) |
73 | |
throws IOException, IllegalArgumentException, IllegalStateException; |
74 | |
|
75 | |
XmlSerializer text( char[] buf, int start, int len ) |
76 | |
throws IOException, IllegalArgumentException, IllegalStateException; |
77 | |
|
78 | |
void cdsect( String text ) |
79 | |
throws IOException, IllegalArgumentException, IllegalStateException; |
80 | |
|
81 | |
void entityRef( String text ) |
82 | |
throws IOException, IllegalArgumentException, IllegalStateException; |
83 | |
|
84 | |
void processingInstruction( String text ) |
85 | |
throws IOException, IllegalArgumentException, IllegalStateException; |
86 | |
|
87 | |
void comment( String text ) |
88 | |
throws IOException, IllegalArgumentException, IllegalStateException; |
89 | |
|
90 | |
void docdecl( String text ) |
91 | |
throws IOException, IllegalArgumentException, IllegalStateException; |
92 | |
|
93 | |
void ignorableWhitespace( String text ) |
94 | |
throws IOException, IllegalArgumentException, IllegalStateException; |
95 | |
|
96 | |
void flush() |
97 | |
throws IOException; |
98 | |
} |