Class VertexByteArrayInputStream
- java.lang.Object
 - 
- java.io.InputStream
 - 
- java.io.FilterInputStream
 - 
- org.apache.tinkerpop.gremlin.structure.io.gryo.VertexByteArrayInputStream
 
 
 
 
- 
- All Implemented Interfaces:
 Closeable,AutoCloseable
public final class VertexByteArrayInputStream extends FilterInputStream
AnInputStreamimplementation that can independently process a Gryo file written withGryoWriter.writeVertices(OutputStream, Iterator).- Author:
 - Stephen Mallette (http://stephen.genoprime.com)
 
 
- 
- 
Field Summary
- 
Fields inherited from class java.io.FilterInputStream
in 
 - 
 
- 
Constructor Summary
Constructors Constructor Description VertexByteArrayInputStream(InputStream inputStream) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteArrayOutputStreamreadVertexBytes()Read the bytes of the nextVertexin the stream.- 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip 
- 
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
VertexByteArrayInputStream
public VertexByteArrayInputStream(InputStream inputStream)
 
 - 
 
- 
Method Detail
- 
readVertexBytes
public ByteArrayOutputStream readVertexBytes() throws IOException
Read the bytes of the nextVertexin the stream. The returned stream can then be passed toGryoReader.readVertex(java.io.InputStream, java.util.function.Function).- Throws:
 IOException
 
 - 
 
 -