/** * Read a {@link Vertex} from output generated by any of the {@link GryoWriter} {@code writeVertex} or * {@code writeVertices} methods or by {@link GryoWriter#writeGraph(OutputStream, Graph)}. * * @param inputStream a stream containing at least a single vertex as defined by the accompanying * {@link GraphWriter#writeVertex(OutputStream, Vertex)}. * @param vertexAttachMethod a function that creates re-attaches a {@link Vertex} to a {@link Host} object. */ @Override public Vertex readVertex(final InputStream inputStream, final Function<Attachable<Vertex>, Vertex> vertexAttachMethod) throws IOException { return readVertex(inputStream, vertexAttachMethod, null, null); }
if (terminatorLocation >= TERMINATOR.length) { try (InputStream in = new ByteArrayInputStream(output.toByteArray())) { final Optional<Vertex> vertex = this.gryoReader.readVertex(in, this.graphFilter); if (vertex.isPresent()) { this.vertexWritable.set(vertex.get());
/** * Read a {@link Vertex} from output generated by any of the {@link GryoWriter} {@code writeVertex} or * {@code writeVertices} methods or by {@link GryoWriter#writeGraph(OutputStream, Graph)}. * * @param inputStream a stream containing at least a single vertex as defined by the accompanying * {@link GraphWriter#writeVertex(OutputStream, Vertex)}. * @param vertexAttachMethod a function that creates re-attaches a {@link Vertex} to a {@link Host} object. */ @Override public Vertex readVertex(final InputStream inputStream, final Function<Attachable<Vertex>, Vertex> vertexAttachMethod) throws IOException { return readVertex(inputStream, vertexAttachMethod, null, null); }
if (terminatorLocation >= TERMINATOR.length) { try (InputStream in = new ByteArrayInputStream(output.toByteArray())) { final Optional<Vertex> vertex = this.gryoReader.readVertex(in, this.graphFilter); if (vertex.isPresent()) { this.vertexWritable.set(vertex.get());