
org.neo4j.jdbc.utils.Neo4jJdbcPrettyPrinter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neo4j-jdbc-bolt Show documentation
Show all versions of neo4j-jdbc-bolt Show documentation
Bolt implementation for the Neo4j JDBC Driver
package org.neo4j.jdbc.utils;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.util.MinimalPrettyPrinter;
import java.io.IOException;
public class Neo4jJdbcPrettyPrinter extends MinimalPrettyPrinter {
private static final char COMMA = ',';
private static final char WHITE_SPACE = ' ';
private void writeSeparator(JsonGenerator jsonGenerator) throws IOException {
jsonGenerator.writeRaw(COMMA);
jsonGenerator.writeRaw(WHITE_SPACE);
}
@Override
public void writeObjectEntrySeparator(JsonGenerator jsonGenerator) throws IOException {
writeSeparator(jsonGenerator);
}
@Override
public void writeArrayValueSeparator(JsonGenerator jsonGenerator) throws IOException {
writeSeparator(jsonGenerator);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy