Class JsonParserFactoryImpl

java.lang.Object
org.glassfish.json.JsonParserFactoryImpl
All Implemented Interfaces:
JsonParserFactory

class JsonParserFactoryImpl extends Object implements JsonParserFactory
  • Field Details

  • Constructor Details

    • JsonParserFactoryImpl

      JsonParserFactoryImpl(BufferPool bufferPool)
  • Method Details

    • createParser

      public JsonParser createParser(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(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(InputStream in, 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
    • createParser

      public JsonParser createParser(JsonArray array)
      Description copied from interface: JsonParserFactory
      Creates a JSON parser from the specified JSON array.
      Specified by:
      createParser in interface JsonParserFactory
      Parameters:
      array - a JSON array
      Returns:
      the created JSON parser
    • getConfigInUse

      public Map<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
    • createParser

      public JsonParser createParser(JsonObject object)
      Description copied from interface: JsonParserFactory
      Creates a JSON parser from the specified JSON object.
      Specified by:
      createParser in interface JsonParserFactory
      Parameters:
      object - a JSON object
      Returns:
      the created JSON parser