Klasse CSVDataOutput

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

public class CSVDataOutput extends Object
Provides methods for writing CSV encoded data.
  • Konstruktordetails

    • CSVDataOutput

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

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

      public CSVDataOutput(File file, 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.
    • CSVDataOutput

      public CSVDataOutput(File file, 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.
    • CSVDataOutput

      public CSVDataOutput(File file, 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.
    • CSVDataOutput

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

      public CSVDataOutput(OutputStream stream) throws IOException
      Instantiate.
      Parameter:
      stream - the stream
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • CSVDataOutput

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

      public CSVDataOutput(OutputStream stream, 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.
    • CSVDataOutput

      public CSVDataOutput(OutputStream stream, 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.
    • CSVDataOutput

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

      public CSVDataOutput(OutputStream stream, 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.
    • CSVDataOutput

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

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

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

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

      public CSVDataOutput(String filename, 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.
    • CSVDataOutput

      public CSVDataOutput(String filename, 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.
    • CSVDataOutput

      public CSVDataOutput(String filename, 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.
    • CSVDataOutput

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

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

      public CSVDataOutput(Writer writer, char delimiter, char quote, char escape, char[] linebreak, int maxColumns) throws IOException
      Instantiates a new CSV data output.
      Parameter:
      writer - the writer
      delimiter - the delimiter
      quote - the quote
      escape - the escape
      linebreak - the linebreak
      maxColumns -
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • CSVDataOutput

      public CSVDataOutput(Writer writer, char delimiter, char quote, char escape, char[] linebreak) throws IOException
      Instantiates a new CSV data output.
      Parameter:
      writer - the writer
      delimiter - the delimiter
      quote - the quote
      escape - the escape
      linebreak - the linebreak
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • CSVDataOutput

      public CSVDataOutput(Writer writer, char delimiter, char quote, char escape, char[] linebreak, CSVOptions options) throws IOException
      Instantiates a new CSV data output.
      Parameter:
      writer - the writer
      delimiter - the delimiter
      quote - the quote
      escape - the escape
      linebreak - the linebreak
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
  • Methodendetails

    • write

      public void write(Iterator<String[]> iterator) throws IOException
      Write the results.
      Parameter:
      iterator - the iterator
      Löst aus:
      IOException - Signals that an I/O exception has occurred.
    • write

      public void write(String[][] hierarchy) throws IOException
      Write.
      Parameter:
      hierarchy - the hierarchy
      Löst aus:
      IOException - Signals that an I/O exception has occurred.