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.FilterInputStreamin
 
- 
 - 
Constructor SummaryConstructors Constructor Description VertexByteArrayInputStream(InputStream inputStream)
 - 
Method SummaryAll 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.FilterInputStreamavailable, close, mark, markSupported, read, read, read, reset, skip
 - 
Methods inherited from class java.io.InputStreamnullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
 
- 
 
- 
- 
- 
Constructor Detail- 
VertexByteArrayInputStreampublic VertexByteArrayInputStream(InputStream inputStream) 
 
- 
 - 
Method Detail- 
readVertexBytespublic 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
 
 
- 
 
-