Class Jaxb.Parser<T>

  • All Implemented Interfaces:
    nbbrd.io.FileParser<T>, nbbrd.io.text.TextParser<T>, Xml.Parser<T>
    Enclosing class:
    Jaxb

    public static final class Jaxb.Parser<T>
    extends Object
    implements Xml.Parser<T>
    • Constructor Detail

      • Parser

        public Parser()
    • Method Detail

      • of

        public static <T> @NonNull Jaxb.Parser<T> of​(@NonNull Class<T> type)
      • parseFile

        public @NonNull T parseFile​(@NonNull File source)
                             throws IOException
        Specified by:
        parseFile in interface nbbrd.io.FileParser<T>
        Throws:
        IOException
      • parseFile

        public @NonNull T parseFile​(@NonNull File source,
                                    @NonNull Charset encoding)
                             throws IOException
        Specified by:
        parseFile in interface nbbrd.io.text.TextParser<T>
        Throws:
        IOException
      • parseReader

        public @NonNull T parseReader​(@NonNull Reader resource)
                               throws IOException
        Specified by:
        parseReader in interface nbbrd.io.text.TextParser<T>
        Throws:
        IOException
      • parseStream

        public @NonNull T parseStream​(@NonNull InputStream resource)
                               throws IOException
        Specified by:
        parseStream in interface nbbrd.io.FileParser<T>
        Throws:
        IOException
      • parseStream

        public @NonNull T parseStream​(@NonNull InputStream resource,
                                      @NonNull Charset encoding)
                               throws IOException
        Specified by:
        parseStream in interface nbbrd.io.text.TextParser<T>
        Throws:
        IOException