Klasse CSVDataInput

java.lang.Object
org.deidentifier.arx.io.CSVDataInput

public class CSVDataInput extends Object
This class implements a reader for CSV encoded information.
  • Konstruktordetails

    • CSVDataInput

      public CSVDataInput(File file, Charset charset) throws IOException
      Instantiate.
      Parameter:
      file - the file
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • CSVDataInput

      public CSVDataInput(File file, Charset charset, char delimiter) throws IOException
      Instantiate.
      Parameter:
      file - the file
      delimiter - the delimiter
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • CSVDataInput

      public CSVDataInput(File file, Charset charset, char delimiter, char quote) throws IOException
      Instantiate.
      Parameter:
      file - the file
      delimiter - the delimiter
      quote - the quote
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • CSVDataInput

      public CSVDataInput(File file, Charset charset, char delimiter, char quote, char escape) throws IOException
      Instantiate.
      Parameter:
      file - the file
      delimiter - the delimiter
      quote - the quote
      escape - the escape
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • CSVDataInput

      public CSVDataInput(File file, Charset charset, char delimiter, char quote, char escape, char[] linebreak) throws IOException
      Instantiate.
      Parameter:
      file - the file
      delimiter - the delimiter
      quote - the quote
      escape - the escape
      linebreak - the linebreak
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • CSVDataInput

      public CSVDataInput(File file, Charset charset, char delimiter, char quote, char escape, char[] linebreak, CSVOptions options) throws IOException
      Instantiate.
      Parameter:
      file - the file
      delimiter - the delimiter
      quote - the quote
      escape - the escape
      linebreak - the linebreak
      options -
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • CSVDataInput

      public CSVDataInput(File file, Charset charset, CSVSyntax config) throws IOException
      Instantiate.
      Parameter:
      file - the file
      config - the config
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • CSVDataInput

      public CSVDataInput(File file, Charset charset, CSVSyntax config, CSVOptions options) throws IOException
      Instantiate.
      Parameter:
      file - the file
      config - the config
      options - the options
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • CSVDataInput

      public CSVDataInput(File file, Charset charset, CSVSyntax config, DataType<?>[] datatype) throws IOException
      Instatiate.
      Parameter:
      file -
      config -
      datatype -
      Löst aus:
      IOException
    • CSVDataInput

      public CSVDataInput(InputStream stream, Charset charset) throws IOException
      Instantiate.
      Parameter:
      stream - the stream
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • CSVDataInput

      public CSVDataInput(InputStream stream, Charset charset, char delimiter) throws IOException
      Instantiate.
      Parameter:
      stream - the stream
      delimiter - the delimiter
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • CSVDataInput

      public CSVDataInput(InputStream stream, Charset charset, char delimiter, char quote) throws IOException
      Instantiate.
      Parameter:
      stream - the stream
      delimiter - the delimiter
      quote - the quote
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • CSVDataInput

      public CSVDataInput(InputStream stream, Charset charset, char delimiter, char quote, char escape) throws IOException
      Instantiate.
      Parameter:
      stream - the stream
      delimiter - the delimiter
      quote - the quote
      escape - the escape
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • CSVDataInput

      public CSVDataInput(InputStream stream, Charset charset, char delimiter, char quote, char escape, char[] linebreak) throws IOException
      Instantiate.
      Parameter:
      stream - the stream
      delimiter - the delimiter
      quote - the quote
      escape - the escape
      linebreak - the linebreak
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • CSVDataInput

      public CSVDataInput(InputStream stream, Charset charset, char delimiter, char quote, char escape, char[] linebreak, CSVOptions options) throws IOException
      Instantiate.
      Parameter:
      stream - the stream
      delimiter - the delimiter
      quote - the quote
      escape - the escape
      linebreak - the linebreak
      options -
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • CSVDataInput

      public CSVDataInput(InputStream stream, Charset charset, CSVSyntax config) throws IOException
      Instantiate.
      Parameter:
      stream - the stream
      config - the config
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • CSVDataInput

      public CSVDataInput(InputStream stream, Charset charset, CSVSyntax config, CSVOptions options) throws IOException
      Instantiate.
      Parameter:
      stream - the stream
      config - the config
      options - the options
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • CSVDataInput

      public CSVDataInput(InputStream stream, Charset charset, CSVSyntax config, DataType<?>[] datatypes) throws IOException
      Instantiate.
      Parameter:
      stream -
      config -
      datatypes -
      Löst aus:
      IOException
    • CSVDataInput

      public CSVDataInput(InputStream stream, Charset charset, CSVSyntax config, DataType<?>[] datatypes, CSVOptions options) throws IOException
      Instantiate.
      Parameter:
      stream -
      config -
      datatypes -
      options -
      Löst aus:
      IOException
    • CSVDataInput

      public CSVDataInput(Reader reader, char delimiter, char quote, char escape, char[] linebreak, DataType<?>[] datatypes) throws IOException
      Instantiate.
      Parameter:
      reader - the reader
      delimiter - the delimiter
      quote - the quote
      escape - the escape
      linebreak - the linebreak
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • CSVDataInput

      public CSVDataInput(Reader reader, char delimiter, char quote, char escape, char[] linebreak, DataType<?>[] datatypes, CSVOptions options) throws IOException
      Instantiate.
      Parameter:
      reader - the reader
      delimiter - the delimiter
      quote - the quote
      escape - the escape
      linebreak - the linebreak
      options - the options
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • CSVDataInput

      public CSVDataInput(String filename, Charset charset) throws IOException
      Instantiate.
      Parameter:
      filename - the filename
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • CSVDataInput

      public CSVDataInput(String filename, Charset charset, char delimiter) throws IOException
      Instantiate.
      Parameter:
      filename - the filename
      delimiter - the delimiter
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • CSVDataInput

      public CSVDataInput(String filename, Charset charset, char delimiter, char quote) throws IOException
      Instantiate.
      Parameter:
      filename - the filename
      delimiter - the delimiter
      quote - the quote
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • CSVDataInput

      public CSVDataInput(String filename, Charset charset, char delimiter, char quote, char escape) throws IOException
      Instantiate.
      Parameter:
      filename - the filename
      delimiter - the delimiter
      quote - the quote
      escape - the escape
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • CSVDataInput

      public CSVDataInput(String filename, Charset charset, char delimiter, char quote, char escape, char[] linebreak) throws IOException
      Instantiate.
      Parameter:
      filename - the filename
      delimiter - the delimiter
      quote - the quote
      escape - the escape
      linebreak - the linebreak
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • CSVDataInput

      public CSVDataInput(String filename, Charset charset, char delimiter, char quote, char escape, char[] linebreak, CSVOptions options) throws IOException
      Instantiate.
      Parameter:
      filename - the filename
      delimiter - the delimiter
      quote - the quote
      escape - the escape
      linebreak - the linebreak
      options -
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • CSVDataInput

      public CSVDataInput(String filename, Charset charset, CSVSyntax config) throws IOException
      Instantiate.
      Parameter:
      filename - the filename
      config - the config
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • CSVDataInput

      public CSVDataInput(String filename, Charset charset, CSVSyntax config, CSVOptions options) throws IOException
      Instantiate
      Parameter:
      filename -
      charset -
      config -
      options -
      Löst aus:
      IOException
    • CSVDataInput

      public CSVDataInput(String filename, Charset charset, CSVSyntax config, DataType<?>[] datatypes) throws IOException
      Instantiate.
      Parameter:
      filename -
      config -
      datatypes -
      Löst aus:
      IOException
  • Methodendetails

    • close

      public void close() throws IOException
      Closes the reader.
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • iterator

      public Iterator<String[]> iterator()
      Returns an iterator. Assumes that the first line is the header. You must iterate trough all elements to prevent resource leaks!
      Gibt zurück:
      the iterator
    • iterator

      public Iterator<String[]> iterator(boolean header)
      Returns an iterator. You must iterate trough all elements to prevent resource leaks!
      Gibt zurück:
      the iterator