endrov.typeParticleMeasure
Class ParticleMeasureIO

java.lang.Object
  extended by endrov.typeParticleMeasure.ParticleMeasureIO

public class ParticleMeasureIO
extends java.lang.Object

Methods for importing/exporting measured data


Constructor Summary
ParticleMeasureIO()
           
 
Method Summary
static void createSQLtable(ParticleMeasure pm, EvSQLConnection conn, java.lang.String dataid, java.lang.String tablename)
          Create the table
static void deleteFromSQLtable(EvSQLConnection conn, java.lang.String dataid, java.lang.String tablename)
          Delete these values from the SQL table
static void dropSQLtable(EvSQLConnection conn, java.lang.String dataid, java.lang.String tablename)
          Drop the entire table
static void insertIntoSQLtable(ParticleMeasure pm, EvSQLConnection conn, java.lang.String dataid, java.lang.String tablename)
          Insert values into table
static void readCSV(ParticleMeasure pm, java.io.Reader is, char fieldDelim)
          Write data as a CSV-style table
static void saveSQL(ParticleMeasure pm, EvSQLConnection conn, java.lang.String dataid, java.lang.String tablename)
          Save data to SQL database
static void writeCSVperframe(ParticleMeasure pm, java.io.Writer io, boolean addHeader, java.lang.String fieldDelim, boolean quote)
          Write data as a CSV-style table
static void writeCSVperparticle(ParticleMeasure pm, java.io.Writer io, boolean addHeader, java.lang.String fieldDelim, boolean quote)
          Write data as a CSV-style table
static void writeCSVperwell(ParticleMeasure pm, java.io.Writer io, boolean addHeader, java.lang.String fieldDelim, boolean quote)
          Write data as a CSV-style table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParticleMeasureIO

public ParticleMeasureIO()
Method Detail

writeCSVperwell

public static void writeCSVperwell(ParticleMeasure pm,
                                   java.io.Writer io,
                                   boolean addHeader,
                                   java.lang.String fieldDelim,
                                   boolean quote)
                            throws java.io.IOException
Write data as a CSV-style table

Throws:
java.io.IOException

writeCSVperframe

public static void writeCSVperframe(ParticleMeasure pm,
                                    java.io.Writer io,
                                    boolean addHeader,
                                    java.lang.String fieldDelim,
                                    boolean quote)
                             throws java.io.IOException
Write data as a CSV-style table

Throws:
java.io.IOException

writeCSVperparticle

public static void writeCSVperparticle(ParticleMeasure pm,
                                       java.io.Writer io,
                                       boolean addHeader,
                                       java.lang.String fieldDelim,
                                       boolean quote)
                                throws java.io.IOException
Write data as a CSV-style table

Throws:
java.io.IOException

readCSV

public static void readCSV(ParticleMeasure pm,
                           java.io.Reader is,
                           char fieldDelim)
                    throws java.io.IOException
Write data as a CSV-style table

Throws:
java.io.IOException

saveSQL

public static void saveSQL(ParticleMeasure pm,
                           EvSQLConnection conn,
                           java.lang.String dataid,
                           java.lang.String tablename)
                    throws java.sql.SQLException
Save data to SQL database

Throws:
java.sql.SQLException

createSQLtable

public static void createSQLtable(ParticleMeasure pm,
                                  EvSQLConnection conn,
                                  java.lang.String dataid,
                                  java.lang.String tablename)
                           throws java.sql.SQLException
Create the table

Throws:
java.sql.SQLException

dropSQLtable

public static void dropSQLtable(EvSQLConnection conn,
                                java.lang.String dataid,
                                java.lang.String tablename)
                         throws java.sql.SQLException
Drop the entire table

Throws:
java.sql.SQLException

deleteFromSQLtable

public static void deleteFromSQLtable(EvSQLConnection conn,
                                      java.lang.String dataid,
                                      java.lang.String tablename)
                               throws java.sql.SQLException
Delete these values from the SQL table

Throws:
java.sql.SQLException

insertIntoSQLtable

public static void insertIntoSQLtable(ParticleMeasure pm,
                                      EvSQLConnection conn,
                                      java.lang.String dataid,
                                      java.lang.String tablename)
                               throws java.sql.SQLException
Insert values into table

Throws:
java.sql.SQLException