it.biobytes.ammentos.query
Class QueryFilePersister

java.lang.Object
  extended by it.biobytes.ammentos.query.QueryFilePersister

public class QueryFilePersister
extends java.lang.Object

Utility class for saving and loading queries from files

Author:
Davide Deidda

Constructor Summary
QueryFilePersister()
          Creates a new instance of QueryFilePersister
 
Method Summary
 Query load(java.io.InputStream is)
           
 void save(Query query, java.io.OutputStream os)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryFilePersister

public QueryFilePersister()
Creates a new instance of QueryFilePersister

Method Detail

save

public void save(Query query,
                 java.io.OutputStream os)
          throws java.io.IOException
Throws:
java.io.IOException

load

public Query load(java.io.InputStream is)
           throws java.io.IOException,
                  java.lang.NumberFormatException,
                  java.lang.InstantiationException,
                  java.lang.IllegalAccessException,
                  java.lang.ClassNotFoundException,
                  PersistenceException
Throws:
java.io.IOException
java.lang.NumberFormatException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
PersistenceException