On 23/05/11 15:21, Laurent Pellegrino wrote:
Hi all,

I have serialized a ResultSet with:

new TSVOutput().format(
     new FileOutputStream(repositoryPath
         + File.pathSeparator + "output.tsv"), results);

Then, I try to unserialize it by using:

ResultSet set =
     ResultSetFactory.load(new FileInputStream(repositoryPath
         + File.pathSeparator + "output.tsv"), ResultSetFormat.syntaxTSV);

But I am getting:

Unknown result set syntax: symbol:RS_TSV

Is there a means of unserializing a ResultSet that has been serialized
using the TSV format? Why is there no TSVInput class as for JSONInput?

Because it isn't written :-)

TSV isn't a first class result set form (CSV even less so).

It is possible to write a TSVInput - there's enough information to reverse the serialization (unlike CSV).

        Andy


Kind Regards,

Laurent

Reply via email to