summaryrefslogtreecommitdiffstats
path: root/xml/src/main/java/org/xmlpull
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2010-05-13 12:36:25 -0700
committerElliott Hughes <enh@google.com>2010-05-13 12:49:12 -0700
commitf33eae7e84eb6d3b0f4e86b59605bb3de73009f3 (patch)
treef6cb62c04ce2669d2fa4715fbab86d38c8fca06d /xml/src/main/java/org/xmlpull
parentd21d78fd49a2d798218e8c8aefbddb26a0e71bbb (diff)
downloadlibcore-f33eae7e84eb6d3b0f4e86b59605bb3de73009f3.zip
libcore-f33eae7e84eb6d3b0f4e86b59605bb3de73009f3.tar.gz
libcore-f33eae7e84eb6d3b0f4e86b59605bb3de73009f3.tar.bz2
Remove all trailing whitespace from the dalvik team-maintained parts of libcore.
Gentlemen, you may now set your editors to "strip trailing whitespace"... Change-Id: I85b2f6c80e5fbef1af6cab11789790b078c11b1b
Diffstat (limited to 'xml/src/main/java/org/xmlpull')
-rw-r--r--xml/src/main/java/org/xmlpull/v1/XmlPullParserFactory.java2
-rw-r--r--xml/src/main/java/org/xmlpull/v1/XmlSerializer.java50
2 files changed, 26 insertions, 26 deletions
diff --git a/xml/src/main/java/org/xmlpull/v1/XmlPullParserFactory.java b/xml/src/main/java/org/xmlpull/v1/XmlPullParserFactory.java
index 7814651..8ad1b89 100644
--- a/xml/src/main/java/org/xmlpull/v1/XmlPullParserFactory.java
+++ b/xml/src/main/java/org/xmlpull/v1/XmlPullParserFactory.java
@@ -243,7 +243,7 @@ public class XmlPullParserFactory {
* to create XML pull parsers (see class description for more
* details).
*
- * @return a new instance of a PullParserFactory, as returned by newInstance (null, null);
+ * @return a new instance of a PullParserFactory, as returned by newInstance (null, null);
*/
public static XmlPullParserFactory newInstance () throws XmlPullParserException {
return newInstance(null, null);
diff --git a/xml/src/main/java/org/xmlpull/v1/XmlSerializer.java b/xml/src/main/java/org/xmlpull/v1/XmlSerializer.java
index 09503ba..101a247 100644
--- a/xml/src/main/java/org/xmlpull/v1/XmlSerializer.java
+++ b/xml/src/main/java/org/xmlpull/v1/XmlSerializer.java
@@ -33,7 +33,7 @@ import java.io.Writer;
*/
public interface XmlSerializer {
-
+
/**
* Set feature identified by name (recommended to be URI for uniqueness).
* Some well known optional features are defined in
@@ -48,8 +48,8 @@ public interface XmlSerializer {
void setFeature(String name,
boolean state)
throws IllegalArgumentException, IllegalStateException;
-
-
+
+
/**
* Return the current value of the feature with given name.
* <p><strong>NOTE:</strong> unknown properties are <strong>always</strong> returned as null
@@ -59,8 +59,8 @@ public interface XmlSerializer {
* @exception IllegalArgumentException if feature string is null
*/
boolean getFeature(String name);
-
-
+
+
/**
* Set the value of a property.
* (the property name is recommended to be URI for uniqueness).
@@ -76,7 +76,7 @@ public interface XmlSerializer {
void setProperty(String name,
Object value)
throws IllegalArgumentException, IllegalStateException;
-
+
/**
* Look up the value of a property.
*
@@ -87,20 +87,20 @@ public interface XmlSerializer {
* @return The value of named property.
*/
Object getProperty(String name);
-
+
/**
* Set to use binary output stream with given encoding.
*/
void setOutput (OutputStream os, String encoding)
throws IOException, IllegalArgumentException, IllegalStateException;
-
+
/**
* Set the output to the given writer.
* <p><b>WARNING</b> no information about encoding is available!
*/
void setOutput (Writer writer)
throws IOException, IllegalArgumentException, IllegalStateException;
-
+
/**
* Write &lt;&#63;xml declaration with encoding (if encoding not null)
* and standalone flag (if standalone not null)
@@ -108,7 +108,7 @@ public interface XmlSerializer {
*/
void startDocument (String encoding, Boolean standalone)
throws IOException, IllegalArgumentException, IllegalStateException;
-
+
/**
* Finish writing. All unclosed start tags will be closed and output
* will be flushed. After calling this method no more output can be
@@ -116,7 +116,7 @@ public interface XmlSerializer {
*/
void endDocument ()
throws IOException, IllegalArgumentException, IllegalStateException;
-
+
/**
* Binds the given prefix to the given namespace.
* This call is valid for the next element including child elements.
@@ -138,7 +138,7 @@ public interface XmlSerializer {
*/
void setPrefix (String prefix, String namespace)
throws IOException, IllegalArgumentException, IllegalStateException;
-
+
/**
* Return namespace that corresponds to given prefix
* If there is no prefix bound to this namespace return null
@@ -153,7 +153,7 @@ public interface XmlSerializer {
*/
String getPrefix (String namespace, boolean generatePrefix)
throws IllegalArgumentException;
-
+
/**
* Returns the current depth of the element.
* Outside the root element, the depth is 0. The
@@ -172,7 +172,7 @@ public interface XmlSerializer {
* </pre>
*/
int getDepth();
-
+
/**
* Returns the namespace URI of the current element as set by startTag().
*
@@ -184,7 +184,7 @@ public interface XmlSerializer {
* @return namespace set by startTag() that is currently in scope
*/
String getNamespace ();
-
+
/**
* Returns the name of the current element as set by startTag().
* It can only be null before first call to startTag()
@@ -193,7 +193,7 @@ public interface XmlSerializer {
* @return namespace set by startTag() that is currently in scope
*/
String getName();
-
+
/**
* Writes a start tag with the given namespace and name.
* If there is no prefix defined for the given namespace,
@@ -208,7 +208,7 @@ public interface XmlSerializer {
*/
XmlSerializer startTag (String namespace, String name)
throws IOException, IllegalArgumentException, IllegalStateException;
-
+
/**
* Write an attribute. Calls to attribute() MUST follow a call to
* startTag() immediately. If there is no prefix defined for the
@@ -218,7 +218,7 @@ public interface XmlSerializer {
*/
XmlSerializer attribute (String namespace, String name, String value)
throws IOException, IllegalArgumentException, IllegalStateException;
-
+
/**
* Write end tag. Repetition of namespace and name is just for avoiding errors.
* <p><b>Background:</b> in kXML endTag had no arguments, and non matching tags were
@@ -229,8 +229,8 @@ public interface XmlSerializer {
*/
XmlSerializer endTag (String namespace, String name)
throws IOException, IllegalArgumentException, IllegalStateException;
-
-
+
+
// /**
// * Writes a start tag with the given namespace and name.
// * <br />If there is no prefix defined (prefix == null) for the given namespace,
@@ -283,19 +283,19 @@ public interface XmlSerializer {
// ALEK: This is really optional as prefix in end tag MUST correspond to start tag but good for error checking
// XmlSerializer endTag (String prefix, String namespace, String name)
// throws IOException, IllegalArgumentException, IllegalStateException;
-
+
/**
* Writes text, where special XML chars are escaped automatically
*/
XmlSerializer text (String text)
throws IOException, IllegalArgumentException, IllegalStateException;
-
+
/**
* Writes text, where special XML chars are escaped automatically
*/
XmlSerializer text (char [] buf, int start, int len)
throws IOException, IllegalArgumentException, IllegalStateException;
-
+
void cdsect (String text)
throws IOException, IllegalArgumentException, IllegalStateException;
void entityRef (String text) throws IOException,
@@ -308,7 +308,7 @@ public interface XmlSerializer {
throws IOException, IllegalArgumentException, IllegalStateException;
void ignorableWhitespace (String text)
throws IOException, IllegalArgumentException, IllegalStateException;
-
+
/**
* Write all pending output to the stream.
* If method startTag() or attribute() was called then start tag is closed (final &gt;)
@@ -321,5 +321,5 @@ public interface XmlSerializer {
*/
void flush ()
throws IOException;
-
+
}