
com.franz.openrdf.rio.nquads.NQuadsWriterFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of agraph-java-client Show documentation
Show all versions of agraph-java-client Show documentation
Java client API for Franz AllegroGraph
/******************************************************************************
** Copyright (c) 2008-2016 Franz Inc.
** All rights reserved. This program and the accompanying materials
** are made available under the terms of the Eclipse Public License v1.0
** which accompanies this distribution, and is available at
** http://www.eclipse.org/legal/epl-v10.html
******************************************************************************/
package com.franz.openrdf.rio.nquads;
import java.io.OutputStream;
import java.io.Writer;
import org.openrdf.rio.RDFFormat;
import org.openrdf.rio.RDFWriter;
import org.openrdf.rio.RDFWriterFactory;
/**
* An {@link RDFWriterFactory} for N-Quads writers.
*
*/
public class NQuadsWriterFactory implements RDFWriterFactory {
/**
* Returns {@link NQuadsFormat#NQUADS}.
*/
public RDFFormat getRDFFormat() {
return NQuadsFormat.NQUADS;
}
/**
* Returns a new instance of {@link NQuadsWriter}.
*/
public RDFWriter getWriter(OutputStream out) {
return new NQuadsWriter(out);
}
/**
* Returns a new instance of {@link NQuadsWriter}.
*/
public RDFWriter getWriter(Writer writer) {
return new NQuadsWriter(writer);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy