com.pmstation.spss
Class CsvToSPSS

java.lang.Object
  extended by com.pmstation.spss.CsvToSPSS

public class CsvToSPSS
extends java.lang.Object

converts data from CSV to SPSS format

Since:
JDK1.2
Version:
1.1
Author:
Alex Lunkov

Constructor Summary
CsvToSPSS()
           
 
Method Summary
static void convert(java.io.File fileCSV, java.io.File fileSPSS, java.lang.String charsetName)
          Writes data in SPSS format.
static void convert(java.io.InputStream inputCSV, java.io.OutputStream outputSPSS, java.lang.String charsetName)
          Writes data in SPSS format.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CsvToSPSS

public CsvToSPSS()
Method Detail

convert

public static void convert(java.io.InputStream inputCSV,
                           java.io.OutputStream outputSPSS,
                           java.lang.String charsetName)
                    throws java.io.IOException
Writes data in SPSS format. An input data is getting from the InputStream in CSV format.

Parameters:
inputCSV - InputStream input stream in CSV format
outputSPSS - OutputStream uptput stream for SPSS format
charsetName - the charset name or null if default.
Throws:
java.io.IOException - if an I/O error occurs.

convert

public static void convert(java.io.File fileCSV,
                           java.io.File fileSPSS,
                           java.lang.String charsetName)
                    throws java.io.IOException
Writes data in SPSS format. An input data is getting from the File in CSV format.

Parameters:
fileCSV - File input file in CSV format
fileSPSS - File file to output in SPSS format
charsetName - the charset name or null if default.
Throws:
java.io.IOException - if an I/O error occurs.


Copyright © 2003-2004 pmStation.com. All Rights Reserved.