import java.io.BufferedReader;
import java.io.File;
-import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
-import java.net.HttpURLConnection;
-import java.net.MalformedURLException;
import java.io.FileInputStream;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import compbio.data.sequence.FastaSequence;
public class JpredParserLocalFile implements JpredParser {
- private CassandraWriter cw = new CassandraWriter();
private String dirprefix;
public void setSource(String newsourceprefix) {
if (in.matches(date + ":(.*)jp_[^\\s]+")) {
String[] table = in.split("\\s+");
String starttime = table[0];
- String finishtime = table[1];
- String ip = table[2];
String id = table[table.length - 1];
totalcount++;
String confilename = dirprefix + "/" + id + "/" + id + ".concise";
} else {
SimpleDateFormat formatter = new SimpleDateFormat("yyyy/MM/dd");
String dateInString1 = starttime.substring(0, starttime.indexOf(":"));
- long insertdate = 0;
try {
Date dat = formatter.parse(dateInString1);
- insertdate = dat.getTime();
} catch (ParseException e) {
e.printStackTrace();
}