Class Picocsv.Parser<T>

java.lang.Object
nbbrd.io.picocsv.Picocsv.Parser<T>
All Implemented Interfaces:
nbbrd.io.text.TextParser<T>
Enclosing class:
Picocsv

public static final class Picocsv.Parser<T> extends Object implements nbbrd.io.text.TextParser<T>
  • Constructor Details

    • Parser

      public Parser()
  • Method Details

    • of

      @StaticFactoryMethod @NonNull public static <T> @NonNull Picocsv.Parser<T> of(@NonNull @NonNull Picocsv.InputHandler<T> handler)
    • builder

      @NonNull public static <T> @NonNull Picocsv.Parser.Builder<T> builder(@NonNull @NonNull Picocsv.InputHandler<T> handler)
    • 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>
      Throws:
      IOException
    • parsePath

      @NonNull public T parsePath(@NonNull @NonNull Path source, @NonNull @NonNull Charset encoding) throws IOException
      Specified by:
      parsePath 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, @NonNull @NonNull Charset encoding) throws IOException
      Specified by:
      parseStream in interface nbbrd.io.text.TextParser<T>
      Throws:
      IOException
    • parseCsv

      @NonNull public T parseCsv(nbbrd.io.function.IOSupplier<@NonNull nbbrd.picocsv.Csv.Reader> source) throws IOException
      Throws:
      IOException
    • parseCsv

      @NonNull public T parseCsv(@NonNull nbbrd.picocsv.Csv.Reader resource) throws IOException
      Throws:
      IOException