Package fr.soleil.salsa.client.exception

Examples of fr.soleil.salsa.client.exception.SalsaPerspectiveException


        try {
            FileOutputStream ostream = new FileOutputStream(perspective.getPerspectiveFile());
            ObjectOutputStream objectOutPutStream = new ObjectOutputStream(ostream);
            objectOutPutStream.writeObject(perspective);
        } catch (IOException e) {
            throw new SalsaPerspectiveException(e.getMessage(), e);
        }
    }
View Full Code Here


            ObjectOutputStream objectOutPutStream = new ObjectOutputStream(ostream);
            objectOutPutStream.writeObject(perspective);
            objectOutPutStream.flush();
        } catch (IOException e) {
            e.printStackTrace();
            throw new SalsaPerspectiveException(e.getMessage(), e);
        }
    }
View Full Code Here

    public Perspective loadPerspectiveFile(InputStream istream) throws SalsaPerspectiveException {
        try {
            ObjectInputStream objectInputStream = new ObjectInputStream(istream);
            return (Perspective) objectInputStream.readObject();
        } catch (IOException e) {
            throw new SalsaPerspectiveException(e.getMessage(), e);
        } catch (ClassNotFoundException e) {
            throw new SalsaPerspectiveException(e.getMessage(), e);
        }
    }
View Full Code Here

        try {
            FileInputStream istream = new FileInputStream(fileName);
            ObjectInputStream objectInputStream = new ObjectInputStream(istream);
            return (Perspective) objectInputStream.readObject();
        } catch (IOException e) {
            throw new SalsaPerspectiveException(e.getMessage(), e);
        } catch (ClassNotFoundException e) {
            throw new SalsaPerspectiveException(e.getMessage(), e);
        }
    }
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.client.exception.SalsaPerspectiveException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.