Class Jaxb.Parser<T>

java.lang.Object
nbbrd.io.xml.bind.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 Details

    • Parser

      public Parser()
  • Method Details

    • of

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

      public static <T> @NonNull Jaxb.Parser<T> of(@NonNull JAXBContext context)
    • 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