| Modifier and Type | Field and Description |
|---|---|
| pack-priv String | |
| protected int | |
| pack-priv Boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addChild(int index, int type, Object child)
Overrides org. |
| public String | |
| public String | |
| public Element | |
| public Boolean | |
| public void | parse(XmlPullParser parser)
Overrides org. |
| public void | removeChild(int index)
Overrides org. |
| public void | |
| public void | |
| public void | write(XmlSerializer writer)
Overrides org. |
| encoding | back to summary |
|---|---|
| pack-priv String encoding | |
| rootIndex | back to summary |
|---|---|
| protected int rootIndex | |
| standalone | back to summary |
|---|---|
| pack-priv Boolean standalone | |
| Document | back to summary |
|---|---|
| public Document() | |
| addChild | back to summary |
|---|---|
| public void addChild(int index, int type, Object child) Overrides org. Adds a child at the given index position. Throws an exception when a second root element is added | |
| getEncoding | back to summary |
|---|---|
| public String getEncoding() returns "#document" | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getRootElement | back to summary |
|---|---|
| public Element getRootElement() returns the root element of this document. | |
| getStandalone | back to summary |
|---|---|
| public Boolean getStandalone() | |
| parse | back to summary |
|---|---|
| public void parse(XmlPullParser parser) throws IOException, XmlPullParserException Overrides org. reads the document and checks if the last event is END_DOCUMENT. If not, an exception is thrown. The end event is consumed. For parsing partial XML structures, consider using Node.parse (). | |
| removeChild | back to summary |
|---|---|
| public void removeChild(int index) Overrides org. Doc from org. Removes the child object at the given index | |
| setEncoding | back to summary |
|---|---|
| public void setEncoding(String enc) | |
| setStandalone | back to summary |
|---|---|
| public void setStandalone(Boolean standalone) | |
| write | back to summary |
|---|---|
| public void write(XmlSerializer writer) throws IOException Overrides org. Writes this node to the given XmlWriter. For node and document, this method is identical to writeChildren, except that the stream is flushed automatically. | |