Class JsonParserFactoryImpl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private BufferPool bufferPool  
      private java.util.Map<java.lang.String,​?> config  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      JsonParser createParser​(java.io.InputStream in)
      Creates a JSON parser from the specified byte stream.
      JsonParser createParser​(java.io.InputStream in, java.nio.charset.Charset charset)
      Creates a JSON parser from the specified byte stream.
      JsonParser createParser​(java.io.Reader reader)
      Creates a JSON parser from a character stream.
      JsonParser createParser​(JsonArray array)
      Creates a JSON parser from the specified JSON array.
      JsonParser createParser​(JsonObject object)
      Creates a JSON parser from the specified JSON object.
      java.util.Map<java.lang.String,​?> getConfigInUse()
      Returns a read-only map of supported provider specific configuration properties that are used to configure the JSON parsers.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • config

        private final java.util.Map<java.lang.String,​?> config
    • Constructor Detail

      • JsonParserFactoryImpl

        JsonParserFactoryImpl​(BufferPool bufferPool)
    • Method Detail

      • createParser

        public JsonParser createParser​(java.io.Reader reader)
        Description copied from interface: JsonParserFactory
        Creates a JSON parser from a character stream.
        Specified by:
        createParser in interface JsonParserFactory
        Parameters:
        reader - a i/o reader from which JSON is to be read
        Returns:
        the created JSON parser
      • createParser

        public JsonParser createParser​(java.io.InputStream in)
        Description copied from interface: JsonParserFactory
        Creates a JSON parser from the specified byte stream. The character encoding of the stream is determined as specified in RFC 7159.
        Specified by:
        createParser in interface JsonParserFactory
        Parameters:
        in - i/o stream from which JSON is to be read
        Returns:
        the created JSON parser
      • createParser

        public JsonParser createParser​(java.io.InputStream in,
                                       java.nio.charset.Charset charset)
        Description copied from interface: JsonParserFactory
        Creates a JSON parser from the specified byte stream. The bytes of the stream are decoded to characters using the specified charset.
        Specified by:
        createParser in interface JsonParserFactory
        Parameters:
        in - i/o stream from which JSON is to be read
        charset - a charset
        Returns:
        the created JSON parser
      • getConfigInUse

        public java.util.Map<java.lang.String,​?> getConfigInUse()
        Description copied from interface: JsonParserFactory
        Returns a read-only map of supported provider specific configuration properties that are used to configure the JSON parsers. If there are any specified configuration properties that are not supported by the provider, they won't be part of the returned map.
        Specified by:
        getConfigInUse in interface JsonParserFactory
        Returns:
        a map of supported provider specific properties that are used to configure the created parsers. The map may be empty but not null