Class AbstractPrincipalSerializer<Type>

    • Field Detail

      • generatorFactory

        @Nonnull
        private final javax.json.stream.JsonGeneratorFactory generatorFactory
        JSON generator factory.
      • readerFactory

        @Nonnull
        private final javax.json.JsonReaderFactory readerFactory
        JSON reader factory.
    • Constructor Detail

      • AbstractPrincipalSerializer

        public AbstractPrincipalSerializer()
        Constructor.
    • Method Detail

      • getJsonGenerator

        @Nonnull
        protected javax.json.stream.JsonGenerator getJsonGenerator​(@Nonnull
                                                                   Writer writer)
        Get a JsonGenerator, synchronized for thread-safety.
        Parameters:
        writer - destination for output
        Returns:
        a generator
      • getJsonReader

        @Nonnull
        protected javax.json.JsonReader getJsonReader​(@Nonnull
                                                      Reader reader)
        Get a JsonReader, synchronized for thread-safety.
        Parameters:
        reader - source of input
        Returns:
        a reader