Package nbbrd.io.xml

Interface Xml.Parser<T>

All Superinterfaces:
nbbrd.io.FileParser<T>, nbbrd.io.text.TextParser<T>
All Known Implementing Classes:
Sax.Parser, Stax.EventParser, Stax.StreamParser
Enclosing class:
Xml

public static interface Xml.Parser<T> extends nbbrd.io.FileParser<T>, nbbrd.io.text.TextParser<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    default <V> @NonNull Xml.Parser<V>
    andThen(@NonNull nbbrd.io.function.IOFunction<? super T,? extends V> after)
     
    boolean
     
    default T
    parseFile(@NonNull File source)
     
    default T
    parseFile(@NonNull File source, @NonNull Charset encoding)
     

    Methods inherited from interface nbbrd.io.FileParser

    parsePath, parseResource, parseStream, parseStream

    Methods inherited from interface nbbrd.io.text.TextParser

    asFileParser, asParser, asParser, parseChars, parsePath, parseProcess, parseProcess, parseProcess, parseReader, parseReader, parseResource, parseStream, parseStream
  • Method Details

    • isIgnoreXXE

      boolean isIgnoreXXE()
    • parseFile

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

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

      @NonNull default <V> @NonNull Xml.Parser<V> andThen(@NonNull @NonNull nbbrd.io.function.IOFunction<? super T,? extends V> after)
      Specified by:
      andThen in interface nbbrd.io.FileParser<T>
      Specified by:
      andThen in interface nbbrd.io.text.TextParser<T>