Package org.jrdf.writer

Examples of org.jrdf.writer.WriteException


            for (final Entry<String, String> entry : names.getNameEntries()) {
                xmlStreamWriter.writeNamespace(entry.getKey(), entry.getValue());
            }
            xmlStreamWriter.writeCharacters(RdfWriter.NEW_LINE + "    ");
        } catch (XMLStreamException e) {
            throw new WriteException(e);
        }
    }
View Full Code Here


    public void writeFooter() throws WriteException {
        try {
            xmlStreamWriter.writeEndElement();
            xmlStreamWriter.writeEndDocument();
        } catch (XMLStreamException e) {
            throw new WriteException(e);
        }
    }
View Full Code Here

            write(graph, writer);
        } finally {
            try {
                writer.close();
            } catch (IOException e) {
                throw new WriteException(e);
            }
        }
    }
View Full Code Here

    public void visitResource(Resource resource) {
        unknownType(resource);
    }

    private void unknownType(final Node node) {
        exception = new WriteException("Unknown node type: " + node.getClass().getName());
    }
View Full Code Here

TOP

Related Classes of org.jrdf.writer.WriteException

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.