Class SimpleVoTableTransformer

java.lang.Object
cds.savot.tools.SimpleVoTableTransformer

public final class SimpleVoTableTransformer extends Object
Very simple VOTable converter to CSV (comma) or TSV (tab) but very efficient for large tables (ROWREAD parsing mode: row per row processing)

Designed to use with JSR-173 compliant (Streaming Api for XML)

Author:
bourgesl
  • Constructor Details

    • SimpleVoTableTransformer

      public SimpleVoTableTransformer(char separator)
      Public constructor
      Parameters:
      separator - any separator character between values
  • Method Details

    • newCSVTransformer

      public static SimpleVoTableTransformer newCSVTransformer()
      Returns:
      new VOTable converter to CSV format
    • newTSVTransformer

      public static SimpleVoTableTransformer newTSVTransformer()
      Returns:
      new VOTable converter to TSV format
    • main

      public static void main(String[] argv)
      Basic TSV transformer
      Parameters:
      argv - file paths: [inputFile] [outputFile]