public class Reader
extends java.lang.Object
Constructor and Description |
---|
Reader() |
Modifier and Type | Method and Description |
---|---|
static java.util.Optional<Api900.RedvoxPacket> |
readBuffer(byte[] data)
Read RedVox encoded file from byte buffer.
|
static java.util.Optional<Api900.RedvoxPacket> |
readFile(java.nio.file.Path path)
Read RedVox encoded file from file system.
|
static java.util.Optional<Api900.RedvoxPacket> |
readJson(java.lang.String json)
Read RedVox encoded file from String representing JSON.
|
static WrappedRedvoxPacket |
wrap(Api900.RedvoxPacket redvoxPacket)
Wraps a RedVox encoded protobuf file in a high-level API wrapper.
|
public static java.util.Optional<Api900.RedvoxPacket> readFile(java.nio.file.Path path)
path
- Path to RedVox encoded file.public static java.util.Optional<Api900.RedvoxPacket> readBuffer(byte[] data)
data
- Byte buffer.public static java.util.Optional<Api900.RedvoxPacket> readJson(java.lang.String json)
json
- Json value of encoded RedVox file.public static WrappedRedvoxPacket wrap(Api900.RedvoxPacket redvoxPacket)
redvoxPacket
- RedVox encoded protobuf representation.