X-Git-Url: http://git.ieval.ro/?p=unical.git;a=blobdiff_plain;f=gson%2Fcom%2Fgoogle%2Fgson%2FJsonStreamParser.java;h=0c66127964380067ba41908d6f0154488696c652;hp=f0438db32963b58f040a3ff1b6e16b5d4c321a13;hb=070d3ab2d6f382ab74988df71eba137424df525f;hpb=2821d13f4db4ffb8a00b2bccde14d0b0e8cc6d65 diff --git a/gson/com/google/gson/JsonStreamParser.java b/gson/com/google/gson/JsonStreamParser.java index f0438db..0c66127 100644 --- a/gson/com/google/gson/JsonStreamParser.java +++ b/gson/com/google/gson/JsonStreamParser.java @@ -30,11 +30,11 @@ import com.google.gson.stream.MalformedJsonException; /** * A streaming parser that allows reading of multiple {@link JsonElement}s from the specified reader * asynchronously. - * + * *

This class is conditionally thread-safe (see Item 70, Effective Java second edition). To * properly use this class across multiple threads, you will need to add some external * synchronization. For example: - * + * *

  * JsonStreamParser parser = new JsonStreamParser("['first'] {'second':10} 'third'");
  * JsonElement element;
@@ -58,9 +58,9 @@ public final class JsonStreamParser implements Iterator {
    * @since 1.4
    */
   public JsonStreamParser(String json) {
-    this(new StringReader(json));      
+    this(new StringReader(json));
   }
-  
+
   /**
    * @param reader The data stream containing JSON elements concatenated to each other.
    * @since 1.4
@@ -70,10 +70,10 @@ public final class JsonStreamParser implements Iterator {
     parser.setLenient(true);
     lock = new Object();
   }
-  
+
   /**
    * Returns the next available {@link JsonElement} on the reader. Null if none available.
-   * 
+   *
    * @return the next available {@link JsonElement} on the reader. Null if none available.
    * @throws JsonParseException if the incoming stream is malformed JSON.
    * @since 1.4
@@ -82,7 +82,7 @@ public final class JsonStreamParser implements Iterator {
     if (!hasNext()) {
       throw new NoSuchElementException();
     }
-    
+
     try {
       return Streams.parse(parser);
     } catch (StackOverflowError e) {