Package org.flexdock.docking.state

Examples of org.flexdock.docking.state.PersistenceException


            DOMSource source = new DOMSource(document);
            StreamResult result = new StreamResult(new OutputStreamWriter(os));

            transformer.transform(source, result);
        } catch (TransformerConfigurationException ex) {
            throw new PersistenceException("Unable to serialize perspectiveModel", ex);
        } catch (TransformerException ex) {
            throw new PersistenceException("Unable to serialize perspectiveModel", ex);
        }

        return true;
    }
View Full Code Here


                return (PerspectiveModel) perspectiveModelSerializer.deserialize(perspectiveModelElement);
            }

            return null;
        } catch (SAXException ex) {
            throw new PersistenceException("Unable to deserialize perspectiveModel from xml", ex);
        }
    }
View Full Code Here

            DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
            DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();

            return documentBuilder;
        } catch (ParserConfigurationException ex) {
            throw new PersistenceException("Unable to create document builder", ex);
        }
    }
View Full Code Here

        try {
            ois = in instanceof ObjectInputStream? (ObjectInputStream)in:
                  new ObjectInputStream(in);
            return (PerspectiveModel) ois.readObject();
        } catch(ClassNotFoundException ex) {
            throw new PersistenceException("Unable to unmarshal data", ex);
        } finally {
            if(ois != null) {
                ois.close();
            }
        }
View Full Code Here

TOP

Related Classes of org.flexdock.docking.state.PersistenceException

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.