public final class GryoIo extends Object implements Io<GryoReader.Builder,GryoWriter.Builder,GryoMapper.Builder>
Graph and IoRegistry. Implementers of the Graph
 interfaces should see the GryoMapper for information on the expectations for the IoRegistry.| Modifier and Type | Class and Description | 
|---|---|
| static class  | GryoIo.Builder | 
Io.Exceptions| Modifier and Type | Method and Description | 
|---|---|
| static Io.Builder<GryoIo> | build()Create a new builder using the default version of Gryo - v3. | 
| static Io.Builder<GryoIo> | build(GryoVersion version)Create a new builder using the specified version of Gryo. | 
| GryoMapper.Builder | mapper()Constructs a  Mapper.Builderwhich is responsible for constructing the abstraction over different
 serialization methods. | 
| GryoReader.Builder | reader()Creates a  GraphReader.ReaderBuilderimplementation . | 
| void | readGraph(String file)Read a  Graphfrom file using the default configuration of theIo.reader()and its suppliedIo.mapper(). | 
| void | writeGraph(String file)Write a  Graphto file using the default configuration of theIo.writer()and its suppliedIo.mapper(). | 
| GryoWriter.Builder | writer()Creates a  GraphWriter.WriterBuilderimplementation . | 
public GryoReader.Builder reader()
GraphReader.ReaderBuilder implementation . Implementers should call the
 Io.mapper() function to feed its result to the builder.  In this way, custom class serializers
 registered to the Mapper.Builder by Graph implementations will end up being used for
 the serialization process.reader in interface Io<GryoReader.Builder,GryoWriter.Builder,GryoMapper.Builder>public GryoWriter.Builder writer()
GraphWriter.WriterBuilder implementation . Implementers should call the
 Io.mapper() function to feed its result to the builder.  In this way, custom class serializers
 registered to the Mapper.Builder by Graph implementations will end up being used for
 the serialization process.writer in interface Io<GryoReader.Builder,GryoWriter.Builder,GryoMapper.Builder>public GryoMapper.Builder mapper()
Mapper.Builder which is responsible for constructing the abstraction over different
 serialization methods.  Implementations should set defaults as required, but most importantly need to
 make the appropriate call to Mapper.Builder.addRegistry(IoRegistry) which will provide the
 builder with any required custom serializers of the Graph.mapper in interface Io<GryoReader.Builder,GryoWriter.Builder,GryoMapper.Builder>public void writeGraph(String file) throws IOException
Graph to file using the default configuration of the Io.writer() and its supplied
 Io.mapper().writeGraph in interface Io<GryoReader.Builder,GryoWriter.Builder,GryoMapper.Builder>IOExceptionpublic void readGraph(String file) throws IOException
Graph from file using the default configuration of the Io.reader() and its supplied
 Io.mapper().readGraph in interface Io<GryoReader.Builder,GryoWriter.Builder,GryoMapper.Builder>IOExceptionpublic static Io.Builder<GryoIo> build()
public static Io.Builder<GryoIo> build(GryoVersion version)
Copyright © 2013–2018 Apache Software Foundation. All rights reserved.