Package fr.soleil.salsa.client.exception

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


            byteArrayOutputStream.close();
            byte layoutContent[] = byteArrayOutputStream.toByteArray();
            windowLayout.setContentArray(layoutContent);
            return windowLayout;
        } catch (IOException e) {
            throw new SalsaPerspectiveException(e.getMessage(), e);
        }
    }
View Full Code Here


            ObjectInputStream objectInputStream = new ObjectInputStream(byteArrayInputStream);
            rootWindow.read(objectInputStream);
            objectInputStream.close();
            byteArrayInputStream.close();
        } catch (IOException e) {
            throw new SalsaPerspectiveException(e.getMessage(), e);
        }
    }
View Full Code Here

            byte layoutContent[] = byteArrayOutputStream.toByteArray();
            windowLayout.setContentArray(layoutContent);
            return windowLayout;
        }
        catch (IOException e) {
            throw new SalsaPerspectiveException(e.getMessage(), e);
        }
    }
View Full Code Here

            rootWindow.read(objectInputStream);
            objectInputStream.close();
            byteArrayInputStream.close();
        }
        catch (IOException e) {
            throw new SalsaPerspectiveException(e.getMessage(), e);
        }
    }
View Full Code Here

                b = in.read();
            }
            out.flush();

        } catch (Exception e) {
            throw new SalsaPerspectiveException(e.getMessage(), e);
        } finally {
            if (in != null) {
                try {
                    in.close();
                } catch (IOException e) {
                    throw new SalsaPerspectiveException(e.getMessage(), e);
                }
            }
            if (out != null) {
                try {
                    out.close();
                } catch (IOException e) {
                    throw new SalsaPerspectiveException(e.getMessage(), e);
                }
            }
        }
    }
View Full Code Here

        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.writeObject(perspective);
            objectOutPutStream.flush();
        } catch (IOException e) {
            LOGGER.error("Cannot savePerspective {} {}", fileName, e.getMessage());
            LOGGER.trace("Stack trace", e);
            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

            byteArrayOutputStream.close();
            byte layoutContent[] = byteArrayOutputStream.toByteArray();
            windowLayout.setContentArray(layoutContent);
            return windowLayout;
        } catch (IOException 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.