Package nbbrd.io.xml

Class Stax.EventParser<T>

java.lang.Object
nbbrd.io.xml.Stax.EventParser<T>
All Implemented Interfaces:
nbbrd.io.FileParser<T>, nbbrd.io.text.TextParser<T>, Xml.Parser<T>
Enclosing class:
Stax

public static final class Stax.EventParser<T> extends Object implements Xml.Parser<T>
  • Constructor Details

    • EventParser

      public EventParser()
  • Method Details

    • flowOf

      @NonNull public static <T> @NonNull Stax.EventParser<T> flowOf(@NonNull @NonNull Stax.FlowHandler<XMLEventReader,T> handler)
    • valueOf

      @NonNull public static <T> @NonNull Stax.EventParser<T> valueOf(@NonNull @NonNull Stax.ValueHandler<XMLEventReader,T> handler)
    • parseFile

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

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

      @NonNull public T parseReader(@NonNull @NonNull nbbrd.io.function.IOSupplier<? extends Reader> source) throws IOException
      Specified by:
      parseReader in interface nbbrd.io.text.TextParser<T>
      Throws:
      IOException
    • parseStream

      @NonNull public T parseStream(@NonNull @NonNull nbbrd.io.function.IOSupplier<? extends InputStream> source) throws IOException
      Specified by:
      parseStream in interface nbbrd.io.FileParser<T>
      Throws:
      IOException
    • parseStream

      @NonNull public T parseStream(@NonNull @NonNull nbbrd.io.function.IOSupplier<? extends InputStream> source, @NonNull @NonNull Charset encoding) throws IOException
      Specified by:
      parseStream in interface nbbrd.io.text.TextParser<T>
      Throws:
      IOException
    • parseReader

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

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

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